From 566e73128e7ce519bd4ff2563cb57e1cb2720e6e Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Thu, 11 Feb 2016 13:32:37 -0600 Subject: [PATCH] Don't chkconfig --add in the delete function --- salt/modules/rh_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/rh_service.py b/salt/modules/rh_service.py index f43bad13da..37aae0557c 100644 --- a/salt/modules/rh_service.py +++ b/salt/modules/rh_service.py @@ -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)