File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/ansible_runner/display_callback/callback Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 40
40
from ansible .plugins .loader import callback_loader
41
41
from ansible .utils .display import Display
42
42
43
+ display = Display ()
43
44
44
45
DOCUMENTATION = '''
45
46
callback: awx_display
@@ -213,7 +214,7 @@ def get_begin_dict(self):
213
214
if not omit_event_data and should_process_event_data :
214
215
max_res = int (os .getenv ("MAX_EVENT_RES" , "700000" ))
215
216
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" )
217
218
event_data ['res' ] = {'msg' : f"'res' in event data exceeded the maximum allowed size ({ max_res } ) and was dropped" }
218
219
else :
219
220
event_data = {}
You can’t perform that action at this time.
0 commit comments