aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,