remove the 'name' field from the slice record before updateing. Cant allow user to...
authorTony Mack <tmack@cs.princeton.edu>
Tue, 1 Sep 2009 00:36:27 +0000 (00:36 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 1 Sep 2009 00:36:27 +0000 (00:36 +0000)
sfa/methods/update.py

index 05a3d39..768116a 100644 (file)
@@ -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)