Change-Id: I7964b245cf6677d3249fcaa3c5d5593a0fcd0af6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
else:
detail = "In queue. Current position: {}".format(op['queuePosition'])
elif op['operationState']=='FAILED' or op['operationState']=='FAILED_TEMP':
- detail = op['errorMessage']
+ detail = op.get('errorMessage','-')
date = datetime.fromtimestamp(op['startTime']).strftime("%Y-%m-%dT%H:%M:%S")
last_update = datetime.fromtimestamp(op['statusEnteredTime']).strftime("%Y-%m-%dT%H:%M:%S")
if long: