- fixed filter bug
authorTony Mack <tmack@cs.princeton.edu>
Mon, 16 Jul 2007 19:33:38 +0000 (19:33 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 16 Jul 2007 19:33:38 +0000 (19:33 +0000)
PLC/Methods/GetNodes.py

index 6c0cd62..39dff8b 100644 (file)
@@ -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