mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Modify job event save behavior
This commit is contained in:
@@ -1106,6 +1106,10 @@ class JobEvent(CreatedModifiedModel):
|
|||||||
self.failed = True
|
self.failed = True
|
||||||
if 'failed' not in update_fields:
|
if 'failed' not in update_fields:
|
||||||
update_fields.append('failed')
|
update_fields.append('failed')
|
||||||
|
else:
|
||||||
|
self.event = 'runner_on_skipped'
|
||||||
|
if 'changed' in res:
|
||||||
|
res['changed'] = False
|
||||||
if isinstance(res, dict) and res.get('changed', False):
|
if isinstance(res, dict) and res.get('changed', False):
|
||||||
self.changed = True
|
self.changed = True
|
||||||
if 'changed' not in update_fields:
|
if 'changed' not in update_fields:
|
||||||
|
|||||||
Reference in New Issue
Block a user