aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-11-13 10:59:02 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-13 10:59:02 +0000
commit0ed51e87ffe8e873768fcea3582d8f05bc96ffd5 (patch)
tree8316a7cc044b32a9773c9d51db26ad36cc5a35c2
parent28cfac52c5ac104daf92ab9b041f80461165857e (diff)
parentceccf4e880cc6f423a41a696935300bdea6c1b23 (diff)
Merge "fix grant vnf para error"
-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 8483962f..db2c5e20 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)