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