Commit dc1ce94a authored by Stavros Sachtouris's avatar Stavros Sachtouris

Fix bug with link_id

parent 381a637b
......@@ -183,11 +183,11 @@ class MyAPP(wsgi.Application):
resource.attributes['occi.compute.hostname'] = ""
self.registry.add_resource(key, resource, None)
link_id = str(uuid.uuid4())
net_str = (
"http://schemas.ogf.org/occi/infrastructure#"
"networkinterface{0}".format(link_id))
for netKey in networkIDs:
link_id = str(uuid.uuid4())
NET_LINK = core_model.Link(
net_str,
NETWORKINTERFACE, [IPNETWORKINTERFACE], resource,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment