Merge pull request #14781 from tserong/patch-1

Disable service.py for entire SUSE family >= 12
This commit is contained in:
Thomas S Hatch 2014-08-07 12:22:55 -06:00
commit a79e369011

View File

@ -47,7 +47,7 @@ def __virtual__():
if __grains__['kernel'] != 'Linux':
return False
# Suse >=12.0 uses systemd
if __grains__.get('os', '') == 'openSUSE':
if __grains__.get('os_family', '') == 'Suse':
try:
if int(__grains__.get('osrelease', '').split('.')[0]) >= 12:
return False