aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaopengzhang <zhang.maopeng1@zte.com.cn>2018-11-13 18:34:58 +0800
committermaopengzhang <zhang.maopeng1@zte.com.cn>2018-11-13 18:34:58 +0800
commitceccf4e880cc6f423a41a696935300bdea6c1b23 (patch)
tree5c4d560147f74b831f86c88b18a78b25c4ee90b4
parent848a884bbd9a537ee2d1e707bed62e4129657eb5 (diff)
fix grant vnf para error
fix grant vnf para error, etc Change-Id: I0accaa82a4633aa4e1887c0aa9c157afc3019a03 Issue-ID: VFC-1158 Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
-rw-r--r--lcm/pub/msapi/resmgr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/pub/msapi/resmgr.py b/lcm/pub/msapi/resmgr.py
index 8b0d56fb..e6bc3bb3 100644
--- a/lcm/pub/msapi/resmgr.py
+++ b/lcm/pub/msapi/resmgr.py
@@ -54,6 +54,8 @@ def grant_vnf(req_param):
vim_id = req_param["vimId"]
elif "additionalparam" in req_param and "vimid" in req_param["additionalparam"]:
vim_id = req_param["additionalparam"]["vimid"]
+ elif "additionalParams" in req_param and "vimid" in req_param["additionalParams"]:
+ vim_id = req_param["additionalParams"]["vimid"]
try:
from lcm.pub.msapi import extsys
vim = extsys.get_vim_by_id(vim_id)