mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
service should return false on exception
This commit is contained in:
parent
47ff9d5627
commit
21c264fe55
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue