From 5d8629f2f0e024b08411a1a710ac927f0f02bcfd Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 1 Sep 2009 00:35:05 +0000 Subject: [PATCH] remove the 'name' field from the slice record before updateing. Cant allow user to attempt to change the slice name --- sfa/methods/update.py | 2 ++ 1 file changed, 2 insertions(+) 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": -- 2.43.0