mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Pass sig to service.status in after_toggle
As on line 350, pass `sig` to `service.status` to ensure that the correct behavior is used. If we don't pass `sig`, upstart/sysv jobs that do not implement `service <name> status` will fail.
This commit is contained in:
parent
8c0a83cbb5
commit
53f7b987e8
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ def running(name, enable=None, sig=None, init_delay=None, **kwargs):
|
|||
time.sleep(init_delay)
|
||||
|
||||
# only force a change state if we have explicitly detected them
|
||||
after_toggle_status = __salt__['service.status'](name)
|
||||
after_toggle_status = __salt__['service.status'](name, sig)
|
||||
if 'service.enabled' in __salt__:
|
||||
after_toggle_enable_status = __salt__['service.enabled'](name)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue