mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #14781 from tserong/patch-1
Disable service.py for entire SUSE family >= 12
This commit is contained in:
commit
a79e369011
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user