mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 02:17:37 -02:30
Fix an issue with set_stats for unsupported Ansible versions
This commit is contained in:
@@ -328,7 +328,7 @@ class BaseCallbackModule(CallbackBase):
|
|||||||
ok=stats.ok,
|
ok=stats.ok,
|
||||||
processed=stats.processed,
|
processed=stats.processed,
|
||||||
skipped=stats.skipped,
|
skipped=stats.skipped,
|
||||||
artifact_data=stats.custom.get('_run', {})
|
artifact_data=stats.custom.get('_run', {}) if hasattr(stats, 'custom') else {}
|
||||||
)
|
)
|
||||||
|
|
||||||
with self.capture_event_data('playbook_on_stats', **event_data):
|
with self.capture_event_data('playbook_on_stats', **event_data):
|
||||||
|
|||||||
Reference in New Issue
Block a user