- accept either id or name
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 20 Sep 2006 17:30:37 +0000 (17:30 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 20 Sep 2006 17:30:37 +0000 (17:30 +0000)
PLC/Methods/AdmUpdateNodeGroup.py

index a659507..90aae6e 100644 (file)
@@ -15,7 +15,8 @@ class AdmUpdateNodeGroup(Method):
 
     accepts = [
         PasswordAuth(),
-       NodeGroup.fields['nodegroup_id'],
+        Mixed(NodeGroup.fields['nodegroup_id'],
+             NodeGroup.fields['name']),
         NodeGroup.fields['name'],
        NodeGroup.fields['description']
         ]