Fail if "rcctl status" writes to stderr.
This commit is contained in:
parent
03d4b76b14
commit
32cb025b85
1 changed files with 2 additions and 0 deletions
|
@ -1030,6 +1030,8 @@ class OpenBsdService(Service):
|
||||||
else:
|
else:
|
||||||
action = "disable %s" % self.name
|
action = "disable %s" % self.name
|
||||||
if rc == 1:
|
if rc == 1:
|
||||||
|
if stderr:
|
||||||
|
self.module.fail_json(msg=stderr)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.module.check_mode:
|
if self.module.check_mode:
|
||||||
|
|
Loading…
Add table
Reference in a new issue