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

Use kstat for Solaris CPU info

This commit is contained in:
Chris Gardner 2013-05-28 22:40:36 +01:00
parent 66c10410ec
commit 9ca7165f88

View file

@ -655,7 +655,7 @@ class SunOSHardware(Hardware):
return self.facts return self.facts
def get_cpu_facts(self): def get_cpu_facts(self):
rc, out, err = module.run_command("/usr/sbin/kstat cpu_info") rc, out, err = module.run_command("/usr/bin/kstat cpu_info")
self.facts['processor'] = [] self.facts['processor'] = []
for line in out.split('\n'): for line in out.split('\n'):
if len(line) < 1: if len(line) < 1: