mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Modify job event save behavior
This commit is contained in:
parent
fc1ca378d1
commit
5b00bb14ca
@ -1106,6 +1106,10 @@ class JobEvent(CreatedModifiedModel):
|
||||
self.failed = True
|
||||
if 'failed' not in update_fields:
|
||||
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):
|
||||
self.changed = True
|
||||
if 'changed' not in update_fields:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user