mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #3750 from giantlock/develop
fix conflict with rpm module
This commit is contained in:
commit
5a32e5a9ad
@ -666,6 +666,7 @@ def os_data():
|
|||||||
grains['os'] = grains['kernel']
|
grains['os'] = grains['kernel']
|
||||||
if grains['kernel'] in ('FreeBSD', 'OpenBSD'):
|
if grains['kernel'] in ('FreeBSD', 'OpenBSD'):
|
||||||
grains.update(_bsd_cpudata(grains))
|
grains.update(_bsd_cpudata(grains))
|
||||||
|
grains['osrelease'] = grains['kernelrelease'].split('-')[0]
|
||||||
if not grains['os']:
|
if not grains['os']:
|
||||||
grains['os'] = 'Unknown {0}'.format(grains['kernel'])
|
grains['os'] = 'Unknown {0}'.format(grains['kernel'])
|
||||||
grains['os_family'] = 'Unknown'
|
grains['os_family'] = 'Unknown'
|
||||||
|
Loading…
Reference in New Issue
Block a user