Selaa lähdekoodia

camqadm: Fixed syntax error when providing options to commands. Closes #257. Thanks to dpwhite2

Ask Solem 14 vuotta sitten
vanhempi
commit
83cde80cbc
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      celery/bin/camqadm.py

+ 2 - 1
celery/bin/camqadm.py

@@ -75,7 +75,8 @@ class Spec(object):
             False
 
         """
-        arg_name, arg_type = self.args[index]
+        arg_info = self.args[index]
+        arg_type = arg_info[1]
         # Might be a custom way to coerce the string value,
         # so look in the coercion map.
         return COERCE.get(arg_type, arg_type)(value)