service: fix typo 'err' in SunOS service class

reviewable/pr18780/r1
Shaun Zinck 12 years ago
parent e50258cdd6
commit 590b86b41e

@ -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)

Loading…
Cancel
Save