X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fbiz%2Fheal_vnf.py;h=5e013042dc9c35e78581290ee16687b914d694f6;hb=8e603024f9d1a6292b9cafffb336966b75eeff35;hp=4d32d509837c7b8d60465cbb2d0a1870af4894a7;hpb=b2c15bc4a66f804d462e213a7cd16aa5abe24931;p=vfc%2Fgvnfm%2Fvnflcm.git 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()),