mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add osmajorrelease and osfinger grains for BSD systems
This commit is contained in:
parent
02782e3a14
commit
3718e6e368
@ -1086,6 +1086,12 @@ def os_data():
|
||||
grains['osfinger'] = '{os}-{ver}'.format(
|
||||
os=grains['osfullname'],
|
||||
ver=grains['osrelease'])
|
||||
elif grains.get('os') in ('FreeBSD', 'OpenBSD', 'NetBSD'):
|
||||
grains['osmajorrelease'] = grains['osrelease'].split('.', 1)[0]
|
||||
|
||||
grains['osfinger'] = '{os}-{ver}'.format(
|
||||
os=grains['os'],
|
||||
ver=grains['osrelease'])
|
||||
|
||||
if grains.get('osrelease', ''):
|
||||
osrelease_info = grains['osrelease'].split('.')
|
||||
|
Loading…
Reference in New Issue
Block a user