Fail if "rcctl status" writes to stderr.

reviewable/pr18780/r1
Patrik Lundin 10 years ago committed by Jonathan Armani
parent 1a8cdb5e3e
commit c6dd88c1d1

@ -987,6 +987,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