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:
3574c73
)
- fixed filter bug
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 16 Jul 2007 19:33:38 +0000
(19:33 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 16 Jul 2007 19:33:38 +0000
(19:33 +0000)
PLC/Methods/GetNodes.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetNodes.py
b/PLC/Methods/GetNodes.py
index
6c0cd62
..
39dff8b
100644
(file)
--- a/
PLC/Methods/GetNodes.py
+++ b/
PLC/Methods/GetNodes.py
@@
-40,7
+40,7
@@
class GetNodes(Method):
slice_ids = set(self.caller['slice_ids'])
for node in nodes:
# if node has whitelist, make sure the user has a slice on the whitelist
- if
node['slice_ids_whitelist']
and \
+ if
'slice_ids_whitelist' in node
and \
not slice_ids.intersection(node['slice_ids_whitelist']):
nodes.remove(node)
continue