Commit 8a6ef8c6 by Shaun Zinck

service: fix typo 'err' in SunOS service class

parent 60bfd388
......@@ -752,7 +752,7 @@ class SunOSService(Service):
rc, stdout, stderr = self.execute_command("%s -l %s" % (self.svcs_cmd, self.name))
if rc != 0:
if err:
if stderr:
self.module.fail_json(msg=stderr)
else:
self.module.fail_json(msg=stdout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment