mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
Added a bytes cast when checking for terminal response (#48427)
This commit is contained in:
committed by
Nathaniel Case
parent
405d6d605f
commit
bb6dc9204f
@@ -57,7 +57,7 @@ class TerminalModule(TerminalBase):
|
||||
terminal_inital_prompt_newline = False
|
||||
|
||||
def on_become(self, passwd=None):
|
||||
if self._get_prompt().endswith('#'):
|
||||
if self._get_prompt().endswith(b'#'):
|
||||
return
|
||||
|
||||
cmd = {u'command': u'enable'}
|
||||
|
||||
Reference in New Issue
Block a user