X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteNodeTag.py;h=97140e9c05b86b9ffceb4a3d2e85c960d83d13da;hb=06ea74f924fac116f2d89ea77b979dcdf6c7abef;hp=5917cab9ac91cca92202d653895b5232f9f6bb4b;hpb=286cdfc25f6ef8fd3e0ed59a175bcf801b14038a;p=plcapi.git diff --git a/PLC/Methods/DeleteNodeTag.py b/PLC/Methods/DeleteNodeTag.py index 5917cab..97140e9 100644 --- a/PLC/Methods/DeleteNodeTag.py +++ b/PLC/Methods/DeleteNodeTag.py @@ -1,4 +1,4 @@ -# $Id# +# $Id$ # # Thierry Parmentelat - INRIA # @@ -45,13 +45,13 @@ class DeleteNodeTag(Method): raise PLCInvalidArgument, "No such node tag %r"%node_tag_id node_tag = node_tags[0] - ### reproducing a check from UpdateSliceAttribute, looks dumb though + ### reproducing a check from UpdateSliceTag, looks dumb though nodes = Nodes(self.api, [node_tag['node_id']]) if not nodes: raise PLCInvalidArgument, "No such node %r"%node_tag['node_id'] node = nodes[0] - assert node_tag['node_tag_id'] in node['tag_ids'] + assert node_tag['node_tag_id'] in node['node_tag_ids'] # check permission : it not admin, is the user affiliated with the right site if 'admin' not in self.caller['roles']: