Merge pull request #35244 from rallytime/bp-31677

Back-port #31677 to 2016.3
This commit is contained in:
Mike Place 2016-08-06 16:53:27 +09:00 committed by GitHub
commit 2e9fa3799c

View File

@ -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):
'''