Merge pull request #286 from nicoddemus/fix-slaveoutput

Add backward compatibility for ``slaveoutput`` attribute to ``WorkerController`` instances
This commit is contained in:
Bruno Oliveira
2018-02-26 18:44:24 -03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

1
changelog/285.bugfix Normal file
View File

@@ -0,0 +1 @@
Add backward compatibility for ``slaveoutput`` attribute to ``WorkerController`` instances.

View File

@@ -307,7 +307,7 @@ class WorkerController(object):
self.notify_inproc(eventname, node=self, **kwargs)
elif eventname == "workerfinished":
self._down = True
self.workeroutput = kwargs['workeroutput']
self.workeroutput = self.slaveoutput = kwargs['workeroutput']
self.notify_inproc("workerfinished", node=self)
elif eventname in ("logstart", "logfinish"):
self.notify_inproc(eventname, node=self, **kwargs)