remove the 'name' field from the slice record before updateing. Cant allow user to...
[sfa.git] / 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)