diff options
author | Liang Ke <lokyse@163.com> | 2018-03-27 02:26:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-27 02:26:27 +0000 |
commit | 091cd173a17fdfdc8c13024097787cd3b7483296 (patch) | |
tree | 481dd4a3b2e5b4d7a3db3d18e20ed9ed893ddfbd /vio | |
parent | 1cdaa0928663eb3359a849776bf5fcd8700c7ae1 (diff) | |
parent | 98b44bd19ff6bfdd5be0a8c57acbec17c02d80fc (diff) |
Merge "Fix the data format of GET"
Diffstat (limited to 'vio')
-rw-r--r-- | vio/vio/api_v2/api_router/controller_builder.py | 9 |
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 |