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

pull/28743/head
Reid Wahl 7 years ago committed by Adrian Likins
parent 3e20acbd79
commit 3c65c2bfaf

@ -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:

Loading…
Cancel
Save