From 92ab25d16d77c05a1547e14f690d6769787ac9f7 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 6 Mar 2012 11:36:21 -0500 Subject: [PATCH] fix bug that causes a slice with no nodes to have an in incorrect rspec --- sfa/plc/plaggregate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/plc/plaggregate.py b/sfa/plc/plaggregate.py index 55e6291e..b0c78d11 100644 --- a/sfa/plc/plaggregate.py +++ b/sfa/plc/plaggregate.py @@ -138,7 +138,7 @@ class PlAggregate: def get_nodes_and_links(self, slice=None,slivers=[], options={}): # if we are dealing with a slice that has no node just return # and empty list - if slice is not None and not slice['node_ids']: + if not slice or not slice['node_ids']: return ([],[]) filter = {} -- 2.43.0