mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #43016 from gtmanfred/service
service should return false on exception
This commit is contained in:
commit
58f070d7a7
@ -893,7 +893,7 @@ def mod_watch(name,
|
||||
try:
|
||||
result = func(name, **func_kwargs)
|
||||
except CommandExecutionError as exc:
|
||||
ret['result'] = True
|
||||
ret['result'] = False
|
||||
ret['comment'] = exc.strerror
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user