From bb6dc9204fa792266ccfe482dab2c60dc9022669 Mon Sep 17 00:00:00 2001 From: Jed-Giblin Date: Wed, 14 Nov 2018 11:54:33 -0500 Subject: [PATCH] Added a bytes cast when checking for terminal response (#48427) --- lib/ansible/plugins/terminal/dellos6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/dellos6.py b/lib/ansible/plugins/terminal/dellos6.py index 59f90bc56c..6211e058e4 100644 --- a/lib/ansible/plugins/terminal/dellos6.py +++ b/lib/ansible/plugins/terminal/dellos6.py @@ -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'}