git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
407a285
)
remove the 'name' field from the slice record before updateing. Cant allow user to...
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Sep 2009 00:35:05 +0000
(
00:35
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Sep 2009 00:35:05 +0000
(
00:35
+0000)
sfa/methods/update.py
patch
|
blob
|
history
diff --git
a/sfa/methods/update.py
b/sfa/methods/update.py
index
b4b0f60
..
05a3d39
100644
(file)
--- 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":