summaryrefslogtreecommitdiff
path: root/plugins/terminal
diff options
context:
space:
mode:
authorNilashish Chakraborty <nilashishchakraborty8@gmail.com>2021-02-19 20:18:12 +0530
committerGitHub <noreply@github.com>2021-02-19 14:48:12 +0000
commitea481d755414ee3390a2ff5792be9c67896fa567 (patch)
treefb4d06d62aa6382a43998f63dc0a8fbeb7b643ba /plugins/terminal
parent7a5b1d97c706e695257af464cd7cc207d2d9bd3b (diff)
downloadvyos-ansible-old-ea481d755414ee3390a2ff5792be9c67896fa567.tar.gz
vyos-ansible-old-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')
-rw-r--r--plugins/terminal/vyos.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/terminal/vyos.py b/plugins/terminal/vyos.py
index a659002..bf9d87b 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)