Systemd not recognized properly on Oracle Linux 7

Both systemd and rh_service modules were enabled which led to a strange situation where:
 - state.sls or state.highstate were failing on service state
 - state.sls_id was passing on the called service
This commit is contained in:
Michal Galet 2015-05-23 22:28:39 +02:00
parent 8e04db76de
commit 4d6ab21c74

View file

@ -69,7 +69,7 @@ def __virtual__():
if __grains__['os'] == 'Fedora':
if osrelease > 15:
return False
if __grains__['os'] in ('RedHat', 'CentOS', 'ScientificLinux'):
if __grains__['os'] in ('RedHat', 'CentOS', 'ScientificLinux', 'OEL'):
if osrelease >= 7:
return False
return __virtualname__