service: fix typo 'err' in SunOS service class
This commit is contained in:
parent
60bfd38820
commit
8a6ef8c69a
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ class SunOSService(Service):
|
||||||
rc, stdout, stderr = self.execute_command("%s -l %s" % (self.svcs_cmd, self.name))
|
rc, stdout, stderr = self.execute_command("%s -l %s" % (self.svcs_cmd, self.name))
|
||||||
|
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
if err:
|
if stderr:
|
||||||
self.module.fail_json(msg=stderr)
|
self.module.fail_json(msg=stderr)
|
||||||
else:
|
else:
|
||||||
self.module.fail_json(msg=stdout)
|
self.module.fail_json(msg=stdout)
|
||||||
|
|
Loading…
Reference in a new issue