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
(from parent 1:
e8ff5de
)
- fixed how node['slice_ids'] are filterd
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 28 Nov 2006 01:02:15 +0000
(
01:02
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 28 Nov 2006 01:02:15 +0000
(
01:02
+0000)
PLC/Methods/GetSlivers.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetSlivers.py
b/PLC/Methods/GetSlivers.py
index
79f3d45
..
606df04
100644
(file)
--- a/
PLC/Methods/GetSlivers.py
+++ b/
PLC/Methods/GetSlivers.py
@@
-146,8
+146,8
@@
class GetSlivers(Method):
# filter out any slices in this nodes slice_id list that may be invalid
# (i.e. expired slices)
-
slice_ids = dict.fromkeys([slice['slice_id'] for slice in all_slice_ids]
)
-
+
slice_ids = dict.fromkeys(filter(lambda slice_id: slice_id in all_slice_ids, node['slice_ids'])
)
+
# If not a foreign node, add all of our default system
# slices to it.
if node['peer_id'] is not None: