From: Tony Mack Date: Tue, 6 Mar 2012 16:36:21 +0000 (-0500) Subject: fix bug that causes a slice with no nodes to have an in incorrect rspec X-Git-Tag: sfa-2.1-24~22^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=92ab25d16d77c05a1547e14f690d6769787ac9f7;p=sfa.git fix bug that causes a slice with no nodes to have an in incorrect rspec --- 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 = {}