Commit 36626ae9 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Allocate resources from cyclades entity

Also fix commissioning key
parent 5008d1a7
......@@ -180,12 +180,12 @@ def invert_resources(resources_dict):
def create_commission(user, resources, delete=False):
if delete:
resources = invert_resources(resources)
provisions = [('system', 'cyclades.' + r, s)
provisions = [('cyclades', 'cyclades.' + r, s)
for r, s in resources.items()]
log.debug("Provisions are %s", provisions)
return {"context": {},
"target": user,
"key": "",
"key": "1",
"clientkey": "cyclades",
"owner": "",
"ownerkey": "",
......
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