From: Tony Mack Date: Tue, 1 Sep 2009 00:36:27 +0000 (+0000) Subject: remove the 'name' field from the slice record before updateing. Cant allow user to... X-Git-Tag: sfa-0.9-1~41 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=896d8268b94d2f6ca171711fab28becaac32366e;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 05a3d390..768116a4 100644 --- a/sfa/methods/update.py +++ b/sfa/methods/update.py @@ -63,7 +63,7 @@ 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: + if 'name' in pl_record: pl_record.pop('name') self.api.plshell.UpdateSlice(self.api.plauth, pointer, pl_record)