Fail if "rcctl status" writes to stderr.

pull/18777/head
Patrik Lundin 12 years ago committed by Matt Clay
parent 03d4b76b14
commit 32cb025b85

@ -1030,6 +1030,8 @@ class OpenBsdService(Service):
else:
action = "disable %s" % self.name
if rc == 1:
if stderr:
self.module.fail_json(msg=stderr)
return
if self.module.check_mode:

Loading…
Cancel
Save