Browse Source

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

Ask Solem 14 years ago
parent
commit
e9cd6b1f98
1 changed files with 2 additions and 1 deletions
  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