X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=lcm%2Flcm%2Fnf%2Fbiz%2Fheal_vnf.py;fp=lcm%2Flcm%2Fnf%2Fbiz%2Fheal_vnf.py;h=5e013042dc9c35e78581290ee16687b914d694f6;hb=d8398af2096d455789e977ee3783b6798a46bc8a;hp=4d32d509837c7b8d60465cbb2d0a1870af4894a7;hpb=789dcca35f52c271f768378b6a3dfb64569c3877;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()),