Merge pull request #13766 from nmadhok/fix-rh-service-module

Fixes the problem where service module is unavailable on RedHat, CentOs
This commit is contained in:
Erik Johnson 2014-06-26 13:30:56 -05:00
commit b0f232744d

View File

@ -55,10 +55,10 @@ def __virtual__():
))
if __grains__['os'] in enable:
if __grains__['os'] == 'Fedora':
if __grains__.get('osrelease', 0) > 15:
if int(__grains__.get('osrelease', 0).split('.')[0]) > 15:
return False
if __grains__['os'] in ('RedHat', 'CentOS', 'ScientificLinux'):
if __grains__.get('osrelease', 0) >= 7:
if int(__grains__.get('osrelease', 0).split('.')[0]) >= 7:
return False
return __virtualname__
return False