mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #34365 from sjorge/2016.3-fix-broken-smartos-grains
fixes computenode_* grains on SmartOS compute nodes
This commit is contained in:
commit
3808d849fe
@ -1391,8 +1391,8 @@ def os_data():
|
||||
uname_v = os.uname()[3]
|
||||
grains['os'] = grains['osfullname'] = 'SmartOS'
|
||||
grains['osrelease'] = uname_v[uname_v.index('_')+1:]
|
||||
elif salt.utils.is_smartos_globalzone():
|
||||
grains.update(_smartos_computenode_data())
|
||||
if salt.utils.is_smartos_globalzone():
|
||||
grains.update(_smartos_computenode_data())
|
||||
elif os.path.isfile('/etc/release'):
|
||||
with salt.utils.fopen('/etc/release', 'r') as fp_:
|
||||
rel_data = fp_.read()
|
||||
|
Loading…
Reference in New Issue
Block a user