mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #21123 from cro/saltcloud-pw-fail
Don't omit password from salt-cloud kwargs if missing has_ssh_agent
This commit is contained in:
commit
e4d7397c23
@ -1005,7 +1005,7 @@ def deploy_script(host,
|
|||||||
if key_filename:
|
if key_filename:
|
||||||
log.debug('Using {0} as the key_filename'.format(key_filename))
|
log.debug('Using {0} as the key_filename'.format(key_filename))
|
||||||
ssh_kwargs['key_filename'] = key_filename
|
ssh_kwargs['key_filename'] = key_filename
|
||||||
elif password and 'has_ssh_agent' in kwargs and kwargs['has_ssh_agent'] is False:
|
elif password and kwargs.get('has_ssh_agent', False) is False:
|
||||||
log.debug('Using {0} as the password'.format(password))
|
log.debug('Using {0} as the password'.format(password))
|
||||||
ssh_kwargs['password'] = password
|
ssh_kwargs['password'] = password
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user