mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix key error for the PR to fix #24870.
This commit is contained in:
parent
bdcf7d88c1
commit
6c31143b22
1 changed files with 1 additions and 1 deletions
|
@ -1463,7 +1463,7 @@ def _exec_ssh_cmd(cmd, error_msg=None, allow_failure=False, **kwargs):
|
|||
if stdout and SSH_PASSWORD_PROMP_RE.search(stdout):
|
||||
# if authenticating with an SSH key and 'sudo' is found
|
||||
# in the password prompt
|
||||
if ('key_filename' in kwargs and kwargs['key']
|
||||
if ('key_filename' in kwargs and kwargs['key_filename']
|
||||
and SSH_PASSWORD_PROMP_SUDO_RE.search(stdout)
|
||||
):
|
||||
# do nothing, as command already has adjustments to
|
||||
|
|
Loading…
Add table
Reference in a new issue