Skip to content

Commit

Permalink
[bcmshell.py] Match extra whitespace before prompt in regex (sonic-net#3
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jleveque authored Apr 5, 2018
1 parent 6289809 commit 560b465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_sfp/bcmshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, keepopen=False, timeout=10, opennow=False, logfileobj=None,
raise SyntaxError("bcmshell constructor prompt expects an re string")
else:
self.re_prompt = re.compile(prompt, re.MULTILINE)
self.re_connectprompt = re.compile("bcmshell\r\n" + prompt, re.MULTILINE)
self.re_connectprompt = re.compile("bcmshell\r\n\s*" + prompt, re.MULTILINE)

if timeout <= 0:
raise ValueError("bcmshell.timeout must be > 0")
Expand Down

0 comments on commit 560b465

Please sign in to comment.