Merge pull request #15461 from cimarronm/grains_core_osfullname_key

Bug in grains.core
This commit is contained in:
Thomas S Hatch 2014-09-02 22:31:39 -06:00
commit 666602ecf3

View File

@ -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(