service should return false on exception

This commit is contained in:
Daniel Wallace 2017-08-17 08:55:54 -06:00
parent 47ff9d5627
commit 21c264fe55

View file

@ -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