From 49fddb6f2875b8de3e287f1af5da3c588dcf6d12 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Wed, 6 Jun 2018 10:25:29 -0400 Subject: [PATCH] Expand ios password prompt regex (#41131) --- 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 dfdb5e5e4fd..c108e91257b 100644 --- a/lib/ansible/plugins/terminal/ios.py +++ b/lib/ansible/plugins/terminal/ios.py @@ -65,7 +65,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]password: ?$", errors='surrogate_or_strict') + cmd[u'prompt'] = to_text(r"[\r\n](?:Local_)?[Pp]assword: ?$", errors='surrogate_or_strict') cmd[u'answer'] = passwd cmd[u'prompt_retry_check'] = True try: