From: Gabriel Cuba Date: Tue, 8 Nov 2022 00:28:14 +0000 (-0500) Subject: Heal: Await heal operation in RO before N2VC part to avoid errors X-Git-Tag: release-v13.0-start~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F12707%2F2;p=osm%2FLCM.git Heal: Await heal operation in RO before N2VC part to avoid errors Change-Id: I1d201be817246fe025cfa4fc77bce5b54151e3a8 Signed-off-by: Gabriel Cuba (cherry picked from commit 73d550fb553ef164b3c5512370bdf03175c9ca16) --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 56d87cf..4fb8d5d 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -7785,17 +7785,12 @@ class NsLcm(LcmBase): self.update_db_2("nsrs", nsr_id, db_nsr_update) step = "Sending heal order to VIM" - task_ro = asyncio.ensure_future( - self.heal_RO( - logging_text=logging_text, - nsr_id=nsr_id, - db_nslcmop=db_nslcmop, - stage=stage, - ) + await self.heal_RO( + logging_text=logging_text, + nsr_id=nsr_id, + db_nslcmop=db_nslcmop, + stage=stage, ) - self.lcm_tasks.register("ns", nsr_id, nslcmop_id, "heal_RO", task_ro) - tasks_dict_info[task_ro] = "Healing at VIM" - # VCA tasks # read from db: nsd stage[1] = "Getting nsd={} from db.".format(db_nsr["nsd-id"])