Skip to content

Commit

Permalink
Merge pull request #1122 from zenoss/feature/ZEN-19208
Browse files Browse the repository at this point in the history
Zencommand tasks get stuck
  • Loading branch information
Glenn Jones committed Oct 9, 2015
2 parents 15faaa7 + f6edeae commit 41a5284
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 41a5284

Please sign in to comment.