summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/api_v2/api_router/controller_builder.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/vio/vio/api_v2/api_router/controller_builder.py b/vio/vio/api_v2/api_router/controller_builder.py
index 4e6d39d..9c01301 100644
--- a/vio/vio/api_v2/api_router/controller_builder.py
+++ b/vio/vio/api_v2/api_router/controller_builder.py
@@ -141,10 +141,11 @@ def _build_api_controller(api_meta):
resp = session.get(full_url, endpoint_filter=service)
mc_res = _convert_vim_res_to_mc_res(resp.json(),
resource_properties)
- return {"vimName": vim_id,
- name: mc_res,
- "tenantId": tenant_id,
- "vimid": vim_id}
+ mc_res.update({"vimName": vim_id,
+ "vimId": vim_id,
+ "tenantId": tenant_id,
+ "returnCode": 0})
+ return mc_res
controller_meta["get"] = _get