Fix for eventname test

Fix process_from_remote to check eventname against a single-element tuple instead of a string sequence.
This commit is contained in:
iansharkey
2017-01-06 20:47:34 -05:00
committed by GitHub
parent 13e601a884
commit d91819114a

View File

@@ -292,7 +292,7 @@ class SlaveController(object):
self._down = True
return
eventname, kwargs = eventcall
if eventname in ("collectionstart"):
if eventname in ("collectionstart",):
self.log("ignoring %s(%s)" % (eventname, kwargs))
elif eventname == "slaveready":
self.notify_inproc(eventname, node=self, **kwargs)