mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix stray string in network_cli (#51142)
* Replace loose string that should be a byte string * Replace byte string literals with string literals * These, on the other hand, need to be byte strings
This commit is contained in:
@@ -523,7 +523,7 @@ class Connection(NetworkConnectionBase):
|
||||
self._ssh_shell.sendall(b'%s' % prompt_answer)
|
||||
if newline:
|
||||
self._ssh_shell.sendall(b'\r')
|
||||
prompt_answer += '\r'
|
||||
prompt_answer += b'\r'
|
||||
self._log_messages("matched command prompt answer: %s" % prompt_answer)
|
||||
if check_all and prompts and not single_prompt:
|
||||
prompts.pop(0)
|
||||
|
||||
Reference in New Issue
Block a user