parent
7c86db3187
commit
58a5f8dfaf
1 changed files with 4 additions and 1 deletions
|
@ -387,7 +387,10 @@ class Facts(object):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
self.facts['distribution'] = name
|
self.facts['distribution'] = name
|
||||||
|
machine_id = get_file_content("/var/lib/dbus/machine-id") or get_file_content("/etc/machine-id")
|
||||||
|
if machine_id:
|
||||||
|
machine_id = machine_id.split('\n')[0]
|
||||||
|
self.facts["machine_id"] = machine_id
|
||||||
self.facts['os_family'] = self.facts['distribution']
|
self.facts['os_family'] = self.facts['distribution']
|
||||||
if self.facts['distribution'] in OS_FAMILY:
|
if self.facts['distribution'] in OS_FAMILY:
|
||||||
self.facts['os_family'] = OS_FAMILY[self.facts['distribution']]
|
self.facts['os_family'] = OS_FAMILY[self.facts['distribution']]
|
||||||
|
|
Loading…
Reference in a new issue