mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Merge branch 'aix_wpar_facts' of https://github.com/mplonka/ansible into mplonka-aix_wpar_facts
This commit is contained in:
commit
82e1722fff
1 changed files with 22 additions and 20 deletions
|
@ -1086,6 +1086,7 @@ class AIX(Hardware):
|
||||||
|
|
||||||
|
|
||||||
rc, out, err = module.run_command("/usr/sbin/lsdev -Cc processor")
|
rc, out, err = module.run_command("/usr/sbin/lsdev -Cc processor")
|
||||||
|
if out:
|
||||||
i = 0
|
i = 0
|
||||||
for line in out.split('\n'):
|
for line in out.split('\n'):
|
||||||
|
|
||||||
|
@ -1123,6 +1124,7 @@ class AIX(Hardware):
|
||||||
# /dev/ada0p3 314368 0 314368 0%
|
# /dev/ada0p3 314368 0 314368 0%
|
||||||
#
|
#
|
||||||
rc, out, err = module.run_command("/usr/sbin/lsps -s")
|
rc, out, err = module.run_command("/usr/sbin/lsps -s")
|
||||||
|
if out:
|
||||||
lines = out.split('\n')
|
lines = out.split('\n')
|
||||||
data = lines[1].split()
|
data = lines[1].split()
|
||||||
swaptotal_mb = long(data[0].rstrip('MB'))
|
swaptotal_mb = long(data[0].rstrip('MB'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue