Remove grains type deprecation warning from 2016.3

Fixes #35972
This commit is contained in:
rallytime 2016-09-06 09:22:57 -06:00
parent 74143999d3
commit 2b7679c9f6

View File

@ -1490,7 +1490,6 @@ def os_data():
osrelease_info[idx] = int(value) osrelease_info[idx] = int(value)
grains['osrelease_info'] = tuple(osrelease_info) grains['osrelease_info'] = tuple(osrelease_info)
grains['osmajorrelease'] = str(grains['osrelease_info'][0]) # This will be an integer in the two releases grains['osmajorrelease'] = str(grains['osrelease_info'][0]) # This will be an integer in the two releases
salt.utils.warn_until('Nitrogen', 'The "osmajorrelease" will be a type of an integer.')
os_name = grains['os' if grains.get('os') in ( os_name = grains['os' if grains.get('os') in (
'FreeBSD', 'OpenBSD', 'NetBSD', 'Mac', 'Raspbian') else 'osfullname'] 'FreeBSD', 'OpenBSD', 'NetBSD', 'Mac', 'Raspbian') else 'osfullname']
grains['osfinger'] = '{0}-{1}'.format( grains['osfinger'] = '{0}-{1}'.format(