diff options
author | Nilashish Chakraborty <nilashishchakraborty8@gmail.com> | 2021-02-19 20:18:12 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 14:48:12 +0000 |
commit | ea481d755414ee3390a2ff5792be9c67896fa567 (patch) | |
tree | fb4d06d62aa6382a43998f63dc0a8fbeb7b643ba /plugins/terminal/vyos.py | |
parent | 7a5b1d97c706e695257af464cd7cc207d2d9bd3b (diff) | |
download | vyos.vyos-ea481d755414ee3390a2ff5792be9c67896fa567.tar.gz vyos.vyos-ea481d755414ee3390a2ff5792be9c67896fa567.zip |
Add support for single_user_mode (#123)
Add support for single_user_mode
Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins/terminal/vyos.py')
-rw-r--r-- | plugins/terminal/vyos.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/terminal/vyos.py b/plugins/terminal/vyos.py index a6590022..bf9d87b2 100644 --- a/plugins/terminal/vyos.py +++ b/plugins/terminal/vyos.py @@ -53,6 +53,8 @@ class TerminalModule(TerminalBase): re.compile(br"\x1b]0;[^\x07]*\x07"), ] + terminal_config_prompt = re.compile(r"^.+#$") + try: terminal_length = os.getenv("ANSIBLE_VYOS_TERMINAL_LENGTH", 10000) terminal_length = int(terminal_length) |