Fixing my last commit.
authorSapan Bhatia <sapanb@cs.princeton.edu>
Sat, 14 Nov 2009 01:22:56 +0000 (01:22 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Sat, 14 Nov 2009 01:22:56 +0000 (01:22 +0000)
sfa/plc/nodes.py

index 6d3ce7c..c3f6a26 100644 (file)
@@ -195,7 +195,7 @@ class Nodes(SimpleStorage):
         public_nodes = lambda n: n.has_key('slice_ids_whitelist') and not n['slice_ids_whitelist']
             
         # ...only if they are not already assigned to this slice.
-        if (slicename):        
+        if (not slicename):        
             nodes = filter(public_nodes, nodes)
 
         # Get all network interfaces