1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

service: fix typo 'err' in SunOS service class

This commit is contained in:
Shaun Zinck 2013-03-24 13:47:56 -05:00
parent 60bfd38820
commit 8a6ef8c69a

View file

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