Fix nxos terminal regex to parse xml response (#31283)

Fixes #26130

Modify nxos terminal regex to parse a xml response.
pull/31335/head
Ganesh Nalawade 7 years ago committed by GitHub
parent 266c2f5831
commit 2e4dcc9dda

@ -28,7 +28,7 @@ from ansible.errors import AnsibleConnectionFailure
class TerminalModule(TerminalBase):
terminal_stdout_re = [
re.compile(br'[\r\n]?[a-zA-Z]{1}[a-zA-Z0-9-_.]*[>|#|%](?:\s*)$'),
re.compile(br'[\r\n](?!\s*<)?[a-zA-Z_]{1}[a-zA-Z0-9-_.]*[>|#|%](?:\s*)$'),
re.compile(br'[\r\n]?[a-zA-Z]{1}[a-zA-Z0-9-_.]*\(.+\)#(?:\s*)$')
]

Loading…
Cancel
Save