generalized on_become prompt match for ios (#63528)
This commit is contained in:
parent
3a733cb0a1
commit
88013e7159
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class TerminalModule(TerminalBase):
|
||||||
if passwd:
|
if passwd:
|
||||||
# Note: python-3.5 cannot combine u"" and r"" together. Thus make
|
# 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.
|
# 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'answer'] = passwd
|
||||||
cmd[u'prompt_retry_check'] = True
|
cmd[u'prompt_retry_check'] = True
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue