Bug fix
[sfa.git] / sfa / managers / aggregate_manager_pl.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()