Browse Source

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

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