From 30af5ee083987127b5a68bc82d02347dd593c76a Mon Sep 17 00:00:00 2001 From: Guillaume Derval Date: Sat, 26 Apr 2014 14:26:51 +0200 Subject: [PATCH] RHEL 7 should use systemd module --- salt/modules/rh_service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/modules/rh_service.py b/salt/modules/rh_service.py index cb27779415..5dc2f7646a 100644 --- a/salt/modules/rh_service.py +++ b/salt/modules/rh_service.py @@ -57,6 +57,9 @@ def __virtual__(): if __grains__['os'] == 'Fedora': if __grains__.get('osrelease', 0) > 15: return False + if __grains__['os'] == 'RedHat': + if __grains__.get('osrelease', 0) >= 7: + return False return __virtualname__ return False