mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 16:11:22 -07:00
parent
778c983ef9
commit
fbe5878919
1 changed files with 5 additions and 3 deletions
|
@ -1599,9 +1599,11 @@ class SunOSHardware(Hardware):
|
||||||
rc returns 1
|
rc returns 1
|
||||||
"""
|
"""
|
||||||
if out:
|
if out:
|
||||||
system_conf = out.split('\n')[0]
|
system_conf = out.split('\n')[0]
|
||||||
self.facts['product_name'] = re.search(r'(\w+\sEnterprise\s\w+)',system_conf).group(1)
|
found = re.search(r'(\w+\sEnterprise\s\w+)',system_conf)
|
||||||
|
if found:
|
||||||
|
self.facts['product_name'] = found.group(1)
|
||||||
|
|
||||||
class OpenBSDHardware(Hardware):
|
class OpenBSDHardware(Hardware):
|
||||||
"""
|
"""
|
||||||
OpenBSD-specific subclass of Hardware. Defines memory, CPU and device facts:
|
OpenBSD-specific subclass of Hardware. Defines memory, CPU and device facts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue