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:
3d2976e
)
- fix bug limited what nodes were returned to non admins
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 19 Jul 2007 16:43:22 +0000
(16:43 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 19 Jul 2007 16:43:22 +0000
(16:43 +0000)
PLC/Methods/GetNodes.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetNodes.py
b/PLC/Methods/GetNodes.py
index
b0e8c0f
..
38dc8f0
100644
(file)
--- a/
PLC/Methods/GetNodes.py
+++ b/
PLC/Methods/GetNodes.py
@@
-43,6
+43,7
@@
class GetNodes(Method):
for node in nodes:
# if node has whitelist, make sure the user has a slice on the whitelist
if 'slice_ids_whitelist' in node and \
+ node['slice_ids_whitelist'] and \
not slice_ids.intersection(node['slice_ids_whitelist']):
nodes.remove(node)
continue