Fix paramiko for non-ascii become password
Cherry-picked from a part of f24c10c32b
This commit is contained in:
parent
264b33da6b
commit
4ea3cd3a38
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ class Connection(ConnectionBase):
|
||||||
|
|
||||||
if passprompt:
|
if passprompt:
|
||||||
if self._play_context.become and self._play_context.become_pass:
|
if self._play_context.become and self._play_context.become_pass:
|
||||||
chan.sendall(self._play_context.become_pass + '\n')
|
chan.sendall(to_bytes(self._play_context.become_pass, errors='strict') + b'\n')
|
||||||
else:
|
else:
|
||||||
raise AnsibleError("A password is reqired but none was supplied")
|
raise AnsibleError("A password is reqired but none was supplied")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue