mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #35244 from rallytime/bp-31677
Back-port #31677 to 2016.3
This commit is contained in:
commit
2e9fa3799c
@ -779,9 +779,11 @@ def enabled(name, **kwargs): # pylint: disable=unused-argument
|
||||
# string will be non-empty.
|
||||
if bool(__salt__['cmd.run'](cmd, python_shell=False)):
|
||||
return True
|
||||
else:
|
||||
elif name in _get_sysv_services():
|
||||
return _sysv_enabled(name)
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def disabled(name):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user