Fixes #20752: Prevent AIX get_vgs_facts from failing on offline lvols (#28701)

This commit is contained in:
Reid Wahl 2017-08-28 11:38:32 -05:00 committed by Adrian Likins
parent 3e20acbd79
commit 3c65c2bfaf

View file

@ -146,7 +146,7 @@ class AIXHardware(Hardware):
vgs_facts = {}
lsvg_path = self.module.get_bin_path("lsvg")
xargs_path = self.module.get_bin_path("xargs")
cmd = "%s | %s %s -p" % (lsvg_path, xargs_path, lsvg_path)
cmd = "%s -o | %s %s -p" % (lsvg_path, xargs_path, lsvg_path)
if lsvg_path and xargs_path:
rc, out, err = self.module.run_command(cmd, use_unsafe_shell=True)
if rc == 0 and out: