1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Check / Skip cores for AIX5 Series (#25364)

This commit is contained in:
Matt Kunkel 2017-06-06 09:43:13 -05:00 committed by Adrian Likins
parent f6a4803669
commit b2b0938aff

View file

@ -74,7 +74,7 @@ class AIXHardware(Hardware):
cpu_facts['processor'] = data[1] cpu_facts['processor'] = data[1]
rc, out, err = self.module.run_command("/usr/sbin/lsattr -El " + cpudev + " -a smt_threads") rc, out, err = self.module.run_command("/usr/sbin/lsattr -El " + cpudev + " -a smt_threads")
if out:
data = out.split(' ') data = out.split(' ')
cpu_facts['processor_cores'] = int(data[1]) cpu_facts['processor_cores'] = int(data[1])