Commit b091083f authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

cyclades: use project as tenant_id in API

parent dccf8009
......@@ -201,7 +201,7 @@ def network_to_dict(network, detail=True):
state = "SNF:DRAINED" if network.drained else network.state
d['user_id'] = network.userid
d['tenant_id'] = network.userid
d['tenant_id'] = network.project
d['type'] = network.flavor
d['updated'] = api.utils.isoformat(network.updated)
d['created'] = api.utils.isoformat(network.created)
......
......@@ -171,7 +171,7 @@ def vm_to_dict(vm, detail=False):
d['links'] = util.vm_to_links(vm.id)
if detail:
d['user_id'] = vm.userid
d['tenant_id'] = vm.userid
d['tenant_id'] = vm.project
d['status'] = logic_utils.get_rsapi_state(vm)
d['SNF:task_state'] = logic_utils.get_task_state(vm)
d['progress'] = 100 if d['status'] == 'ACTIVE' else vm.buildpercentage
......
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