diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-12 15:26:02 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-12 15:26:02 +0800 |
commit | da0475d37a7fc6310b3a5f0ac407be408bb06caf (patch) | |
tree | 4ba6e5a49933b0de6002ee00dafa37c7641dd240 | |
parent | aa49f8cd2bb0cd890243c4dde06cfbbc9c512f9b (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.py | 2 |
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, |