git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a0ef8
)
- commit last
author
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 31 Oct 2006 21:47:47 +0000
(21:47 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 31 Oct 2006 21:47:47 +0000
(21:47 +0000)
PLC/Methods/AddSliceToNodes.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/AddSliceToNodes.py
b/PLC/Methods/AddSliceToNodes.py
index
8cc9ad7
..
3b194b4
100644
(file)
--- a/
PLC/Methods/AddSliceToNodes.py
+++ b/
PLC/Methods/AddSliceToNodes.py
@@
-51,8
+51,10
@@
class AddSliceToNodes(Method):
# Add slice to all nodes found
for node in nodes:
if slice['slice_id'] not in node['slice_ids']:
- slice.add_node(node)
-
+ slice.add_node(node, commit = False)
+
+ slice.sync()
+
self.object_ids = [node['node_id'] for node in nodes]
return 1