mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add a deprecation warning
This commit is contained in:
parent
4dc45f2509
commit
6eea62d4ec
1 changed files with 1 additions and 0 deletions
|
@ -1490,6 +1490,7 @@ def os_data():
|
|||
osrelease_info[idx] = int(value)
|
||||
grains['osrelease_info'] = tuple(osrelease_info)
|
||||
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 (
|
||||
'FreeBSD', 'OpenBSD', 'NetBSD', 'Mac', 'Raspbian') else 'osfullname']
|
||||
grains['osfinger'] = '{0}-{1}'.format(
|
||||
|
|
Loading…
Add table
Reference in a new issue