From: Tony Mack Date: Tue, 1 Sep 2009 00:35:05 +0000 (+0000) Subject: remove the 'name' field from the slice record before updateing. Cant allow user to... X-Git-Tag: sfa-0.9-1~42 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5d8629f2f0e024b08411a1a710ac927f0f02bcfd;p=sfa.git remove the 'name' field from the slice record before updateing. Cant allow user to attempt to change the slice name --- diff --git a/sfa/methods/update.py b/sfa/methods/update.py index b4b0f60a..05a3d390 100644 --- a/sfa/methods/update.py +++ b/sfa/methods/update.py @@ -63,6 +63,8 @@ class update(Method): elif type == "slice": hrn=record.get_name() pl_record=self.api.geni_fields_to_pl_fields(type, hrn, record) + if 'name' in pl_reocrd: + pl_record.pop('name') self.api.plshell.UpdateSlice(self.api.plauth, pointer, pl_record) elif type == "user":