Updating result and operationState in operationHistory

Change-Id: I38c3ec750c3cfe2a99e0c7ca6f180b9518885ac6
Signed-off-by: shahithya <shahithya.y@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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 @@
                 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