summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-02-21 13:56:35 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-02-21 13:56:35 +0800
commitb73b78bb2f65c89b5506b8450388ad6cb982b887 (patch)
tree27dd7c8a66f17fcc51b0b2ce005be5643ea99151
parent7ba34c3fb24f54fcbc18db2d3c15125aef426f27 (diff)
Refactor vim api call common logic
Change-Id: I4abbc394c3fc0db4f52eab6d5492823b9bf633ab Issue-Id: GVNFM-30 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/lcm/pub/vimapi/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/pub/vimapi/api.py b/lcm/lcm/pub/vimapi/api.py
index 721ab701..51d00e47 100644
--- a/lcm/lcm/pub/vimapi/api.py
+++ b/lcm/lcm/pub/vimapi/api.py
@@ -20,7 +20,7 @@ from .exceptions import VimException
VIM_DRIVER_BASE_URL = "openoapi/multivim/v1"
def call(vim_id, tenant_id, res, method, data=''):
- if data and not isinstance(a, (str, unicode)):
+ if data and not isinstance(data, (str, unicode)):
data = json.JSONEncoder().encode(data)
url = "{base_url}/{vim_id}{tenant_id}/{res}".format(
base_url=VIM_DRIVER_BASE_URL,