Skip to content

Commit 4a76c3b

Browse files
committed
thought i was in callback, but even requries new
1 parent 60fec6c commit 4a76c3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansible_runner/display_callback/callback/awx_display.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from ansible.plugins.loader import callback_loader
4141
from ansible.utils.display import Display
4242

43+
display = Display()
4344

4445
DOCUMENTATION = '''
4546
callback: awx_display
@@ -213,7 +214,7 @@ def get_begin_dict(self):
213214
if not omit_event_data and should_process_event_data:
214215
max_res = int(os.getenv("MAX_EVENT_RES", "700000"))
215216
if event not in ('playbook_on_stats',) and "res" in event_data and len(str(event_data['res'])) > max_res:
216-
self._display.warning(f"'res' in event data exceeds maximum allowed size ({max_res}), so it will be dropped")
217+
display.warning(f"'res' in event data exceeds maximum allowed size ({max_res}), so it will be dropped")
217218
event_data['res'] = {'msg': f"'res' in event data exceeded the maximum allowed size ({max_res}) and was dropped"}
218219
else:
219220
event_data = {}

0 commit comments

Comments
 (0)