mirror of
https://github.com/ansible/awx.git
synced 2026-06-22 07:07:47 -02:30
Fix awx-collection tests for ansible-core 2.21.0 compat ansible-core 2.21.0 introduced _PARSED_MODULE_ARGS in module_utils/basic.py, used by _return_formatted() to conditionally include invocation data. The awx_collection test harness bypasses normal arg parsing via _load_params mock, leaving this variable as None and causing AttributeError on every exit_json/fail_json call. Mock _PARSED_MODULE_ARGS with _ansible_inject_invocation=True to match the pre-2.21 behavior of always including invocation data.