mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Don't chkconfig --add in the delete function
This commit is contained in:
parent
5f638366e1
commit
566e73128e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user