Переглянути джерело

celery.task.control.inspect: Fixed replies if there is no destination.

Ask Solem 14 роки тому
батько
коміт
e9cd6b1f98
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      celery/task/control.py

+ 2 - 1
celery/task/control.py

@@ -105,7 +105,8 @@ class inspect(object):
         if not reply:
             return
         by_node = flatten_reply(reply)
-        if not isinstance(self.destination, (list, tuple)):
+        if self.destination and \
+                not isinstance(self.destination, (list, tuple)):
             return by_node.get(self.destination)
         return by_node