Skip to content

Commit

Permalink
Fix nxos terminal plugin regex (ansible#39659)
Browse files Browse the repository at this point in the history
Fix nxos terminal plugin regex to match
command prompt without newline character as prefix

(cherry picked from commit 0ac222d)
  • Loading branch information
ganeshrn authored and trishnaguha committed May 15, 2018
1 parent a55fd1e commit 63b4d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/terminal/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
class TerminalModule(TerminalBase):

terminal_stdout_re = [
re.compile(br'[\r\n](?!\s*<)?(\x1b\S+)*[a-zA-Z_]{1}[a-zA-Z0-9-_.]*[>|#|%](?:\s*)*(\x1b\S+)*$'),
re.compile(br'[\r\n]?(?!\s*<)?(\x1b\S+)*[a-zA-Z_]{1}[a-zA-Z0-9-_.]*[>|#|%](?:\s*)*(\x1b\S+)*$'),
re.compile(br'[\r\n]?[a-zA-Z]{1}[a-zA-Z0-9-_.]*\(.+\)#(?:\s*)$')
]

Expand Down

0 comments on commit 63b4d16

Please sign in to comment.