fix cut-n-paste from AddSliceTag error
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 17 Jul 2009 02:35:12 +0000 (02:35 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 17 Jul 2009 02:35:12 +0000 (02:35 +0000)
PLC/Methods/UpdateSliceTag.py

index 6e0a943..0b65333 100644 (file)
@@ -59,7 +59,7 @@ class UpdateSliceTag(Method):
         else:
             ### make node's min_role_id == PI min_role_id
             node_role_id = 20
-            if tag_type['min_role_id'] is not None and node_role_id > tag_type['min_role_id']:
+            if slice_tag['min_role_id'] is not None and node_role_id > slice_tag['min_role_id']:
                 raise PLCPermissionDenied, "Not allowed to update the specified slice attribute"
        
        if slice_tag['tagname'] in ['initscript']: