Commit 9ca7165f by Chris Gardner

Use kstat for Solaris CPU info

parent 66c10410
...@@ -655,7 +655,7 @@ class SunOSHardware(Hardware): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment