Fix enabling a service on Ubuntu #24012

This reverts commit bd6f5ea370.
This commit is contained in:
Jean-Baptiste Quenot 2015-05-21 10:56:30 +02:00 committed by rallytime
parent 88a997e6ee
commit 16e0732b50

View file

@ -465,7 +465,7 @@ def enable(name, **kwargs):
if _service_is_upstart(name):
return _upstart_enable(name)
executable = _get_service_exec()
cmd = '{0} -f {1} enable'.format(executable, name)
cmd = '{0} -f {1} defaults'.format(executable, name)
return not __salt__['cmd.retcode'](cmd, python_shell=False)