Added a bytes cast when checking for terminal response (#48427)

This commit is contained in:
Jed-Giblin 2018-11-14 11:54:33 -05:00 committed by Nathaniel Case
commit bb6dc9204f

View file

@ -57,7 +57,7 @@ class TerminalModule(TerminalBase):
terminal_inital_prompt_newline = False terminal_inital_prompt_newline = False
def on_become(self, passwd=None): def on_become(self, passwd=None):
if self._get_prompt().endswith('#'): if self._get_prompt().endswith(b'#'):
return return
cmd = {u'command': u'enable'} cmd = {u'command': u'enable'}