mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
This commit is contained in:
committed by
John R Barker
parent
49ea68ca63
commit
9f82f3fd14
@@ -64,7 +64,7 @@ class DarwinHardware(Hardware):
|
||||
mac_facts = {}
|
||||
rc, out, err = self.module.run_command("sysctl hw.model")
|
||||
if rc == 0:
|
||||
mac_facts['model'] = out.splitlines()[-1].split()[1]
|
||||
mac_facts['model'] = mac_facts['product_name'] = out.splitlines()[-1].split()[1]
|
||||
mac_facts['osversion'] = self.sysctl['kern.osversion']
|
||||
mac_facts['osrevision'] = self.sysctl['kern.osrevision']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user