mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-07 09:41:29 -07:00
Ensure that the become password is written on py3 in the ssh connection plugin. Fixes #34727
This commit is contained in:
parent
fb18338cdc
commit
29c1d5cb5d
2 changed files with 4 additions and 0 deletions
|
@ -459,6 +459,7 @@ class TestSSHConnectionRun(object):
|
|||
self.mock_selector.get_map.side_effect = lambda: True
|
||||
|
||||
return_code, b_stdout, b_stderr = self.conn._run("ssh", "this is input data")
|
||||
self.mock_popen_res.stdin.flush.assert_called_once_with()
|
||||
assert return_code == 0
|
||||
assert b_stdout == b'abc'
|
||||
assert b_stderr == b'123'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue