mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
formatted finished time to match microsecond expected output as is in the API.
This commit is contained in:
parent
10b5a10728
commit
07752f48f6
@ -3,6 +3,7 @@
|
||||
|
||||
# Python
|
||||
from io import StringIO
|
||||
import datetime
|
||||
import codecs
|
||||
import json
|
||||
import logging
|
||||
@ -1219,7 +1220,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
else:
|
||||
status_data['instance_group_name'] = None
|
||||
elif status in ['successful', 'failed', 'canceled']:
|
||||
status_data['finished'] = self.finished
|
||||
status_data['finished'] = datetime.datetime.strftime(self.finished, "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
status_data.update(self.websocket_emit_data())
|
||||
status_data['group_name'] = 'jobs'
|
||||
if getattr(self, 'unified_job_template_id', None):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user