Skip to content

Instantly share code, notes, and snippets.

@TheDigitalNomadDev
Forked from ganeshrn/terminal_ios.py
Created August 22, 2018 10:40
Show Gist options
  • Save TheDigitalNomadDev/a0317ebf4cdb20c8c47bf8841df264d2 to your computer and use it in GitHub Desktop.
Save TheDigitalNomadDev/a0317ebf4cdb20c8c47bf8841df264d2 to your computer and use it in GitHub Desktop.
ios terminal plugin
$ git diff lib/ansible/plugins/terminal/ios.py
diff --git a/lib/ansible/plugins/terminal/ios.py b/lib/ansible/plugins/terminal/ios.py
index c108e91257..3706019724 100644
--- a/lib/ansible/plugins/terminal/ios.py
+++ b/lib/ansible/plugins/terminal/ios.py
@@ -30,7 +30,7 @@ from ansible.plugins.terminal import TerminalBase
class TerminalModule(TerminalBase):
terminal_stdout_re = [
- re.compile(br"[\r\n]?[\w\+\-\.:\/\[\]]+(?:\([^\)]+\)){0,3}(?:[>#]) ?$")
+ re.compile(br"[\r\n][\w\+\-\.:\/\[\]]+(?:\([^\)]+\)){0,3}(?:[>#]) ?$")
]
terminal_stderr_re = [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment