Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 2:
319fb28
)
Merge "Get flavor id from OOF."
author
Yan Yang
<yangyanyj@chinamobile.com>
Thu, 22 Nov 2018 07:55:56 +0000
(07:55 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Thu, 22 Nov 2018 07:55:56 +0000
(07:55 +0000)
lcm/lcm/nf/biz/heal_vnf.py
patch
|
blob
|
history
diff --git
a/lcm/lcm/nf/biz/heal_vnf.py
b/lcm/lcm/nf/biz/heal_vnf.py
index
4d32d50
..
5e01304
100644
(file)
--- a/
lcm/lcm/nf/biz/heal_vnf.py
+++ b/
lcm/lcm/nf/biz/heal_vnf.py
@@
-143,12
+143,13
@@
class HealVnf(Thread):
'resourceId': vm[0].resourceid,
'vimLevelResourceType': 'vm'
}
- affected_vnfcs.append({
- 'id': vnfcs[0].vnfcinstanceid,
- 'vduId': vnfcs[0].vduid,
- 'changeType': chtype,
- 'computeResource': vm_resource
- })
+ if vnfcs:
+ affected_vnfcs.append({
+ 'id': vnfcs[0].vnfcinstanceid,
+ 'vduId': vnfcs[0].vduid,
+ 'changeType': chtype,
+ 'computeResource': vm_resource
+ })
notification_content = {
"id": str(uuid.uuid4()),