|
|
@ -172,9 +172,12 @@ class Facts(object):
|
|
|
|
if self.facts['system'] == 'Linux':
|
|
|
|
if self.facts['system'] == 'Linux':
|
|
|
|
self.get_distribution_facts()
|
|
|
|
self.get_distribution_facts()
|
|
|
|
elif self.facts['system'] == 'AIX':
|
|
|
|
elif self.facts['system'] == 'AIX':
|
|
|
|
rc, out, err = module.run_command("/usr/sbin/bootinfo -p")
|
|
|
|
try:
|
|
|
|
data = out.split('\n')
|
|
|
|
rc, out, err = module.run_command("/usr/sbin/bootinfo -p")
|
|
|
|
self.facts['architecture'] = data[0]
|
|
|
|
data = out.split('\n')
|
|
|
|
|
|
|
|
self.facts['architecture'] = data[0]
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
self.facts['architectrure' = 'Not Available'
|
|
|
|
elif self.facts['system'] == 'OpenBSD':
|
|
|
|
elif self.facts['system'] == 'OpenBSD':
|
|
|
|
self.facts['architecture'] = platform.uname()[5]
|
|
|
|
self.facts['architecture'] = platform.uname()[5]
|
|
|
|
|
|
|
|
|
|
|
|