fix bug, networks connected to wrong slice
diff --git a/xos/tosca/resources/network.py b/xos/tosca/resources/network.py
index 8d7fca4..f0178f8 100644
--- a/xos/tosca/resources/network.py
+++ b/xos/tosca/resources/network.py
@@ -41,7 +41,7 @@
def postprocess(self, obj):
for sliceName in self.get_requirements("tosca.relationships.ConnectsToSlice"):
- slice = self.get_xos_object(Slice, sliceName)
+ slice = self.get_xos_object(Slice, name=sliceName)
netSlices = NetworkSlice.objects.filter(network=obj, slice = slice)
if not netSlices:
self.info("Attached Network %s to Slice %s" % (obj, slice))