Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7ba34c3
)
Refactor vim api call common logic
author
fujinhua
<fu.jinhua@zte.com.cn>
Tue, 21 Feb 2017 05:56:35 +0000
(13:56 +0800)
committer
fujinhua
<fu.jinhua@zte.com.cn>
Tue, 21 Feb 2017 05:56:35 +0000
(13:56 +0800)
Change-Id: I4abbc394c3fc0db4f52eab6d5492823b9bf633ab
Issue-Id: GVNFM-30
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/lcm/pub/vimapi/api.py
patch
|
blob
|
history
diff --git
a/lcm/lcm/pub/vimapi/api.py
b/lcm/lcm/pub/vimapi/api.py
index
721ab70
..
51d00e4
100644
(file)
--- 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(
dat
a, (str, unicode)):
data = json.JSONEncoder().encode(data)
url = "{base_url}/{vim_id}{tenant_id}/{res}".format(
base_url=VIM_DRIVER_BASE_URL,