From: shahithya Date: Thu, 7 Nov 2024 09:39:07 +0000 (+0000) Subject: Updating result and operationState in operationHistory X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F14711%2F2;p=osm%2FLCM.git Updating result and operationState in operationHistory Change-Id: I38c3ec750c3cfe2a99e0c7ca6f180b9518885ac6 Signed-off-by: shahithya --- diff --git a/osm_lcm/lcm_utils.py b/osm_lcm/lcm_utils.py index 3106070..925fd2d 100644 --- a/osm_lcm/lcm_utils.py +++ b/osm_lcm/lcm_utils.py @@ -247,13 +247,20 @@ class LcmBase: now = time() if workflow_status: content["operationHistory"][op_num]["workflowState"] = "COMPLETED" + content["operationHistory"][op_num]["result"] = True else: content["operationHistory"][op_num]["workflowState"] = "ERROR" + content["operationHistory"][op_num]["operationState"] = "FAILED" + content["operationHistory"][op_num]["result"] = False if resource_status: content["operationHistory"][op_num]["resourceState"] = "READY" + content["operationHistory"][op_num]["operationState"] = "COMPLETED" + content["operationHistory"][op_num]["result"] = True else: content["operationHistory"][op_num]["resourceState"] = "NOT_READY" + content["operationHistory"][op_num]["operationState"] = "FAILED" + content["operationHistory"][op_num]["result"] = False content["operationHistory"][op_num]["endDate"] = now break