diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-04-11 20:01:56 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-04-11 20:01:56 +0800 |
commit | 7823217cd5f5208ee264e79de1b666773ebc5eec (patch) | |
tree | b04432dfe73e1c9376c725a674f805ced9d8c69f /lcm | |
parent | 3340d1d7039d56457cca112c93351ad326ea22cd (diff) |
Fix url logic of gvnfm-lcm
Change-Id: I3f00be91665dad2183dcfdd99a22f5f6ff8c309e
Issue-Id: GVNFM-49
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/pub/vimapi/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/pub/vimapi/api.py b/lcm/lcm/pub/vimapi/api.py index 0ab13354..64f40cac 100644 --- a/lcm/lcm/pub/vimapi/api.py +++ b/lcm/lcm/pub/vimapi/api.py @@ -22,7 +22,7 @@ VIM_DRIVER_BASE_URL = "openoapi/multivim/v1" def call(vim_id, tenant_id, res, method, data=''): if data and not isinstance(data, (str, unicode)): data = json.JSONEncoder().encode(data) - url = "{base_url}/{vim_id}/{tenant_id}/{res}".format( + url = "{base_url}/{vim_id}{tenant_id}/{res}".format( base_url=VIM_DRIVER_BASE_URL, vim_id=vim_id, tenant_id="/" + tenant_id if tenant_id else "", |