From: Yan Yang Date: Thu, 22 Nov 2018 07:55:56 +0000 (+0000) Subject: Merge "Get flavor id from OOF." X-Git-Tag: 1.2.2~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1be16bee6fc098097aa28eba07ff7ab624901010;hp=319fb28898c8bcceb27aa9ee23218c9669eb323e;p=vfc%2Fgvnfm%2Fvnflcm.git Merge "Get flavor id from OOF." --- diff --git a/lcm/lcm/nf/biz/heal_vnf.py b/lcm/lcm/nf/biz/heal_vnf.py index 4d32d509..5e013042 100644 --- 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()),