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

Remove references to non-existant variable rc

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-25 00:23:29 +01:00
parent 1ec2a59073
commit 4679d8d6e5

View file

@ -330,11 +330,11 @@ class LinuxService(Service):
rc1, stdout1, stderr1 = self.execute_command("%s %s %s" % (svc_cmd, 'stop', self.arguments))
rc2, stdout2, stderr2 = self.execute_command("%s %s %s" % (svc_cmd, 'start', self.arguments))
if rc1 != 0 and rc2 == 0:
rc_state = rc + rc2
rc_state = rc2
stdout = stdout2
stderr = stderr2
else:
rc_state = rc + rc1 + rc2
rc_state = rc1 + rc2
stdout = stdout1 + stdout2
stderr = stderr1 + stderr2