mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #27283 from jtand/yumpkg_yum_fix
__grains__['osrelease'] returns a string
This commit is contained in:
commit
688f24e9e4
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ def _yum():
|
|||
'''
|
||||
contextkey = 'yum_bin'
|
||||
if contextkey not in __context__:
|
||||
if 'fedora' in __grains__['os'].lower() and __grains__['osrelease'] >= 22:
|
||||
if 'fedora' in __grains__['os'].lower() and int(__grains__['osrelease']) >= 22:
|
||||
__context__[contextkey] = 'dnf'
|
||||
else:
|
||||
__context__[contextkey] = 'yum'
|
||||
|
|
Loading…
Add table
Reference in a new issue