Skip to content

Commit

Permalink
Zencommand tasks get stuck
Browse files Browse the repository at this point in the history
ZEN-19208

Back-porting two more PRs to address this issue:

#1088
#1092
  • Loading branch information
johnlhamilton committed Oct 8, 2015
1 parent 15faaa7 commit f6edeae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Products/DataCollector/CollectorClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def commandsFinished(self):
return len(self.results) == len(self._commands)


def clientFinished(self):
def clientFinished(self, error=None):
"""
Tell the datacollector that we are all done
"""
Expand Down
2 changes: 1 addition & 1 deletion Products/DataCollector/SshClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def serviceStopped(self, *args, **kwargs):
else:
msg = "SSH authentication failed - no password or public key specified"
self._handleFailure(msg, event_key="sshClientAuth")
self.factory.clientFinished(msg)
self.factory.clientFinished(LoginFailed(msg))
else:
sendEvent(self, "Authentication succeeded for username %s" % self.user, severity=Event.Clear,
event_key="sshClientAuth")
Expand Down
4 changes: 2 additions & 2 deletions Products/ZenRRD/zencommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ def clientConnectionFailed(self, connector, reason):
"""
msg = reason.getErrorMessage()
if self.connect_defer and not self.connect_defer.called:
self.connect_defer.errback(msg)
self.connect_defer.errback(reason)
if self.close_defer and not self.close_defer.called:
self.close_defer.errback(msg)
self.close_defer.errback(reason)

self.clientFinished()

Expand Down

0 comments on commit f6edeae

Please sign in to comment.