aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-11-12 15:26:02 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-11-12 15:26:02 +0800
commitda0475d37a7fc6310b3a5f0ac407be408bb06caf (patch)
tree4ba6e5a49933b0de6002ee00dafa37c7641dd240
parentaa49f8cd2bb0cd890243c4dde06cfbbc9c512f9b (diff)
Fix vnf grant logic
Change-Id: I6117b389a4d06d542d1dedc5c77dafb546659841 Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@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..8483962f 100644
--- a/lcm/pub/msapi/resmgr.py
+++ b/lcm/pub/msapi/resmgr.py
@@ -60,6 +60,8 @@ def grant_vnf(req_param):
if isinstance(vim, list):
vim = vim[0]
vim_id = vim["vimId"]
+ if "vimId" in vim:
+ vim_id = vim["vimId"]
grant_rsp = {
"vim": {
"vimId": vim_id,