Bug fix
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 9 Feb 2010 22:26:13 +0000 (22:26 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 9 Feb 2010 22:26:13 +0000 (22:26 +0000)
sfa/managers/aggregate_manager_pl.py
sfa/managers/aggregate_manager_vini.py

index c05f1c8..c5f57fe 100644 (file)
@@ -182,8 +182,7 @@ def get_rspec(api, xrn=None, origin_hrn=None):
     hrn, type = urn_to_hrn(xrn)
     network = Network(api)
     if (hrn):
-        network.get_slice(api, hrn)
-        if slice:
+        if network.get_slice(api, hrn):
             network.addSlice()
 
     return network.toxml()
index 062a88a..50b100e 100644 (file)
@@ -183,8 +183,7 @@ def get_rspec(api, xrn=None, origin_hrn=None):
     hrn, type = urn_to_hrn(xrn)
     network = ViniNetwork(api)
     if (hrn):
-        network.get_slice(api, hrn)
-        if slice:
+        if network.get_slice(api, hrn):
             network.addSlice()
 
     return network.toxml()