Merge pull request #27283 from jtand/yumpkg_yum_fix

__grains__['osrelease'] returns a string
This commit is contained in:
Justin Findlay 2015-09-21 13:18:44 -06:00
commit 688f24e9e4

View file

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