mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #8176/8491bf7b backport][stable-7] fix(aix_filesystem): remove extra param from running lsvg (#8208)
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 8491bf7b49
)
Co-authored-by: Peter Shen <xianpeng.shen@gmail.com>
This commit is contained in:
parent
25a6603059
commit
882ce25ce2
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/8151-fix-lsvg_cmd-failed.yml
Normal file
2
changelogs/fragments/8151-fix-lsvg_cmd-failed.yml
Normal file
|
@ -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).
|
|
@ -242,7 +242,7 @@ def _validate_vg(module, vg):
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
module.fail_json(msg="Failed executing %s command." % lsvg_cmd)
|
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:
|
if rc != 0:
|
||||||
module.fail_json(msg="Failed executing %s command." % lsvg_cmd)
|
module.fail_json(msg="Failed executing %s command." % lsvg_cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue