get_bin_path('ssh-agent'): required is deprecated (#84995)

(cherry picked from commit 4868effc71)
pull/85043/head
Martin Krizek 8 months ago committed by Matt Martz
parent 2fcfad54b0
commit 85cb2baf1f
No known key found for this signature in database
GPG Key ID: 40832D88E9FC91D8

@ -0,0 +1,2 @@
bugfixes:
- "Remove use of `required` parameter in `get_bin_path` which has been deprecated."

@ -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')

Loading…
Cancel
Save