mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
formatted finished time to match microsecond expected output as is in the API.
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# Python
|
# Python
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
import datetime
|
||||||
import codecs
|
import codecs
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
@@ -1219,7 +1220,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
else:
|
else:
|
||||||
status_data['instance_group_name'] = None
|
status_data['instance_group_name'] = None
|
||||||
elif status in ['successful', 'failed', 'canceled']:
|
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.update(self.websocket_emit_data())
|
||||||
status_data['group_name'] = 'jobs'
|
status_data['group_name'] = 'jobs'
|
||||||
if getattr(self, 'unified_job_template_id', None):
|
if getattr(self, 'unified_job_template_id', None):
|
||||||
|
|||||||
Reference in New Issue
Block a user