Skipping facts not available on AIX WPARs

reviewable/pr18780/r1
Marcin Płonka 11 years ago
parent f54b72faea
commit 4a43bb3b00

@ -1086,6 +1086,7 @@ class AIX(Hardware):
rc, out, err = module.run_command("/usr/sbin/lsdev -Cc processor")
if out:
i = 0
for line in out.split('\n'):
@ -1123,6 +1124,7 @@ class AIX(Hardware):
# /dev/ada0p3 314368 0 314368 0%
#
rc, out, err = module.run_command("/usr/sbin/lsps -s")
if out:
lines = out.split('\n')
data = lines[1].split()
swaptotal_mb = long(data[0].rstrip('MB'))

Loading…
Cancel
Save