Expand ios password prompt regex (#41131)

(cherry picked from commit 49fddb6f28)
pull/41306/head
Nathaniel Case 8 years ago committed by Matt Clay
parent f54b9e4dd8
commit 594b81f73e

@ -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:

Loading…
Cancel
Save