mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #15461 from cimarronm/grains_core_osfullname_key
Bug in grains.core
This commit is contained in:
commit
666602ecf3
@ -1095,7 +1095,7 @@ def os_data():
|
||||
grains['osfinger'] = '{os}-{ver}'.format(
|
||||
os=grains['osfullname'],
|
||||
ver=grains['osrelease'])
|
||||
elif grains['osfullname'] == "Debian":
|
||||
elif grains.get('osfullname') == "Debian":
|
||||
grains['osmajorrelease'] = grains['osrelease'].split('.', 1)[0]
|
||||
|
||||
grains['osfinger'] = '{os}-{ver}'.format(
|
||||
|
Loading…
Reference in New Issue
Block a user