diff --git a/changelogs/fragments/get_bin_path-remove-use-of-deprecated-param.yml b/changelogs/fragments/get_bin_path-remove-use-of-deprecated-param.yml new file mode 100644 index 00000000000..5220fb025be --- /dev/null +++ b/changelogs/fragments/get_bin_path-remove-use-of-deprecated-param.yml @@ -0,0 +1,2 @@ +bugfixes: + - "Remove use of `required` parameter in `get_bin_path` which has been deprecated." diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index 462393868e0..c3b9c9fd8c4 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -139,7 +139,7 @@ def _launch_ssh_agent() -> None: return case 'auto': try: - ssh_agent_bin = get_bin_path('ssh-agent', required=True) + ssh_agent_bin = get_bin_path('ssh-agent') except ValueError as e: raise AnsibleError('SSH_AGENT set to auto, but cannot find ssh-agent binary') from e ssh_agent_dir = os.path.join(C.DEFAULT_LOCAL_TMP, 'ssh_agent')