diff options
-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: |