Skip to content

Commit

Permalink
[PR #8176/8491bf7b backport][stable-8] fix(aix_filesystem): remove ex…
Browse files Browse the repository at this point in the history
…tra param from running lsvg (#8209)

fix(aix_filesystem): remove extra param from running lsvg (#8176)

* fix(aix_filesystem): remove extra param from running lsvg

* chore: add new line to changlog file

* Update 8151-fix-lsvg_cmd-failed.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 8491bf7)

Co-authored-by: Peter Shen <xianpeng.shen@gmail.com>
  • Loading branch information
patchback[bot] and shenxianpeng committed Apr 9, 2024
1 parent 2cf6fdf commit 39dd596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/8151-fix-lsvg_cmd-failed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- aix_filesystem - fix ``_validate_vg`` not passing VG name to ``lsvg_cmd`` (https://github.com/ansible-collections/community.general/issues/8151).
2 changes: 1 addition & 1 deletion plugins/modules/aix_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _validate_vg(module, vg):
if rc != 0:
module.fail_json(msg="Failed executing %s command." % lsvg_cmd)

rc, current_all_vgs, err = module.run_command([lsvg_cmd, "%s"])
rc, current_all_vgs, err = module.run_command([lsvg_cmd])
if rc != 0:
module.fail_json(msg="Failed executing %s command." % lsvg_cmd)

Expand Down

0 comments on commit 39dd596

Please sign in to comment.