mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
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:
commit
b0f232744d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user