From fc69d014444361814ec644d6f461aa97bcb1eb35 Mon Sep 17 00:00:00 2001 From: benjdudas <31855206+benjdudas@users.noreply.github.com> Date: Tue, 3 Dec 2019 17:36:58 -0500 Subject: [PATCH] gen on_become prompt for ios backport (#63572) --- lib/ansible/plugins/terminal/ios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/ios.py b/lib/ansible/plugins/terminal/ios.py index 2bb29fbaaf0..cd578f7ceb1 100644 --- a/lib/ansible/plugins/terminal/ios.py +++ b/lib/ansible/plugins/terminal/ios.py @@ -76,7 +76,7 @@ class TerminalModule(TerminalBase): if passwd: # Note: python-3.5 cannot combine u"" and r"" together. Thus make # an r string and use to_text to ensure it's text on both py2 and py3. - cmd[u'prompt'] = to_text(r"[\r\n](?:Local_)?[Pp]assword: ?$", errors='surrogate_or_strict') + cmd[u'prompt'] = to_text(r"[\r\n](?:.*)?[Pp]assword: ?$", errors='surrogate_or_strict') cmd[u'answer'] = passwd cmd[u'prompt_retry_check'] = True try: