Add processor_vcpu fact for Darwin (#30708)

Fix adds fact related to vcpu in Darwin's setup.

Fixes: #30688

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/30785/head
Abhijeet Kasurde 7 years ago committed by Adrian Likins
parent 12404f470a
commit e1dcfda172

@ -79,6 +79,7 @@ class DarwinHardware(Hardware):
system_profile = self.get_system_profile()
cpu_facts['processor'] = '%s @ %s' % (system_profile['Processor Name'], system_profile['Processor Speed'])
cpu_facts['processor_cores'] = self.sysctl['hw.physicalcpu']
cpu_facts['processor_vcpus'] = self.sysctl.get('hw.logicalcpu') or self.sysctl.get('hw.ncpu') or ''
return cpu_facts

Loading…
Cancel
Save