Change-Id: I53c63960be41a897d093f948d4cc5e377c80389f
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
action_name = op["operationParams"]["primitive"]
detail = "-"
if op["operationState"] == "PROCESSING":
- if op["queuePosition"] is not None and op["queuePosition"] > 0:
+ if op.get("queuePosition") is not None and op.get("queuePosition") > 0:
detail = "In queue. Current position: {}".format(op["queuePosition"])
elif op["lcmOperationType"] in ("instantiate", "terminate"):
if op["stage"]: