Don't chkconfig --add in the delete function

This commit is contained in:
Erik Johnson 2016-02-11 13:32:37 -06:00
parent 5f638366e1
commit 566e73128e

View File

@ -204,7 +204,7 @@ def _sysv_delete(name):
Delete the named sysv service from the system. The service will be
deleted using chkconfig.
'''
if not _service_is_chkconfig(name) and not _chkconfig_add(name):
if not _service_is_chkconfig(name):
return False
cmd = '/sbin/chkconfig --del {0}'.format(name)
return not __salt__['cmd.retcode'](cmd)