diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-12 15:24:34 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-11-12 15:24:34 +0800 |
commit | f115fb16d5b2ec75bf0ad30fe28cffeda722d574 (patch) | |
tree | 93f30f31e8ab33790f771842c66bb4f7e2bc6af6 | |
parent | 361e581f1977b679028f0311bac85eff9e1dd783 (diff) |
Fix vnf grant logic
Change-Id: I3fa2d4a0f879e1a1cb1696ac24a96e25fb68f982
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/lcm/nf/biz/grant_vnf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/nf/biz/grant_vnf.py b/lcm/lcm/nf/biz/grant_vnf.py index dd22c06e..dfe575b1 100644 --- a/lcm/lcm/nf/biz/grant_vnf.py +++ b/lcm/lcm/nf/biz/grant_vnf.py @@ -62,7 +62,7 @@ def grant_resource(data, nf_inst_id, job_id, grant_type, vdus): } content_args['removeResources'].append(res_def) res_index += 1 - if vdus[0].vimid: + if vdus and vdus[0].vimid: content_args['additionalParams'] = {} content_args['additionalParams']['vimid'] = vdus[0].vimid elif grant_type == GRANT_TYPE.INSTANTIATE: |