Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
361e581
)
Fix vnf grant logic
11/72411/1
author
fujinhua
<fu.jinhua@zte.com.cn>
Mon, 12 Nov 2018 07:24:34 +0000
(15:24 +0800)
committer
fujinhua
<fu.jinhua@zte.com.cn>
Mon, 12 Nov 2018 07:24:34 +0000
(15:24 +0800)
Change-Id: I3fa2d4a0f879e1a1cb1696ac24a96e25fb68f982
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/lcm/nf/biz/grant_vnf.py
patch
|
blob
|
history
diff --git
a/lcm/lcm/nf/biz/grant_vnf.py
b/lcm/lcm/nf/biz/grant_vnf.py
index
dd22c06
..
dfe575b
100644
(file)
--- 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: