mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add clock speed to processor description for SPARC CPU.
This commit is contained in:
@@ -669,8 +669,13 @@ class SunOSHardware(Hardware):
|
||||
brand = ''
|
||||
elif key == 'brand':
|
||||
brand = data[1].strip()
|
||||
elif key == 'clock_MHz':
|
||||
clock_mhz = data[1].strip()
|
||||
elif key == 'implementation':
|
||||
processor = brand or data[1].strip()
|
||||
# Add clock speed to description for SPARC CPU
|
||||
if self.facts['machine'] != 'i86pc':
|
||||
processor += " @ " + clock_mhz + "MHz"
|
||||
if 'processor' not in self.facts:
|
||||
self.facts['processor'] = []
|
||||
self.facts['processor'].append(processor)
|
||||
|
||||
Reference in New Issue
Block a user