Changed component links name
Change-Id: Idcb5c42ec06dfac751c7aee94538e361a164e744
diff --git a/xos/synchronizers/onboarding/xosbuilder.py b/xos/synchronizers/onboarding/xosbuilder.py
index c791f1f..fd0fe17 100644
--- a/xos/synchronizers/onboarding/xosbuilder.py
+++ b/xos/synchronizers/onboarding/xosbuilder.py
@@ -355,13 +355,13 @@
for c in XOSComponent.objects.all():
# create internal and external links list
- links = []
- external_links = []
+ component_links = []
+ component_external_links = []
for l in c.links.all():
if l.kind == 'internal':
- links.append("%s:%s" % (l.container, l.alias))
+ component_links.append("%s:%s" % (l.container, l.alias))
elif l.kind == 'external':
- external_links.append("%s:%s" % (l.container, l.alias))
+ component_external_links.append("%s:%s" % (l.container, l.alias))
# creating volumes list
volume_list = []
@@ -377,8 +377,8 @@
"ports": {
port[0]: port[1]
},
- "links": links,
- "external_links": external_links,
+ "links": component_links,
+ "external_links": component_external_links,
"volumes": volume_list
}