fix bug
authorTony Mack <tmack@cs.princeton.edu>
Tue, 10 Feb 2009 23:14:50 +0000 (23:14 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 10 Feb 2009 23:14:50 +0000 (23:14 +0000)
geni/aggregate.py

index 9c550be..29948ec 100644 (file)
@@ -183,7 +183,7 @@ class Aggregate(GeniServer):
         for node in nodes:
             node_hrn = self.hostname_to_hrn(site_dict[node['site_id']], node['hostname'])
             # filter nodes with a whitelist
-            if node.has_key('slice_ids_whitelist') and node['slice_ids_whitelist'):
+            if node.has_key('slice_ids_whitelist') and node['slice_ids_whitelist']:
                 continue
             # Do not allow nodes not found in whitelist policy
             if self.policy['whitelist'] and node_hrn not in self.polciy['whitelist']: