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:
682494b
)
<x/> gets parsed into a list. Go figure.
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 6 Nov 2009 21:09:36 +0000
(21:09 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 6 Nov 2009 21:09:36 +0000
(21:09 +0000)
sfa/plc/slices.py
patch
|
blob
|
history
diff --git
a/sfa/plc/slices.py
b/sfa/plc/slices.py
index
5f7d7d9
..
4040e6c
100644
(file)
--- a/
sfa/plc/slices.py
+++ b/
sfa/plc/slices.py
@@
-457,6
+457,9
@@
class Slices(SimpleStorage):
node = nodes[node_name]
for slice_tag in node.keys():
value = node[slice_tag]
+ if (isinstance(value, list)):
+ value = value[0]
+
self.api.plshell.AddSliceTag(self.api.plauth, slicename, slice_tag, value, node_name)
self.api.plshell.DeleteSliceFromNodes(self.api.plauth, slicename, deleted_nodes)