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 4040from ansible .plugins .loader import callback_loader
4141from ansible .utils .display import Display
4242
43+ display = Display ()
4344
4445DOCUMENTATION = '''
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 = {}
You can’t perform that action at this time.
0 commit comments