diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-31 19:57:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-31 19:59:25 +0200 |
commit | 9c63731d6683f59ea784c08852ed38e3ac22794b (patch) | |
tree | cebb83f73174ca647fdb59bccb3a584d3b3670e5 /data/templates/ssh/sshd_config.tmpl | |
parent | 621fcb078abb53888e995a007fb9ea31e95e34ab (diff) | |
download | vyos-1x-9c63731d6683f59ea784c08852ed38e3ac22794b.tar.gz vyos-1x-9c63731d6683f59ea784c08852ed38e3ac22794b.zip |
T2636: remove workarounds for get_config_dict()
Now that b40c52682a256 ("config: T2636: get_config_dict() returns a list on
multi node by default") is implemented the workarounds can be removed.
Diffstat (limited to 'data/templates/ssh/sshd_config.tmpl')
-rw-r--r-- | data/templates/ssh/sshd_config.tmpl | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/data/templates/ssh/sshd_config.tmpl b/data/templates/ssh/sshd_config.tmpl index 4fde24255..52d537aca 100644 --- a/data/templates/ssh/sshd_config.tmpl +++ b/data/templates/ssh/sshd_config.tmpl @@ -37,13 +37,9 @@ PermitRootLogin no UseDNS {{ "no" if disable_host_validation is defined else "yes" }} # Specifies the port number that sshd(8) listens on -{% if port is string %} -Port {{ port }} -{% else %} -{% for value in port %} +{% for value in port %} Port {{ value }} -{% endfor %} -{% endif %} +{% endfor %} # Gives the verbosity level that is used when logging messages from sshd LogLevel {{ loglevel | upper }} @@ -53,13 +49,9 @@ PasswordAuthentication {{ "no" if disable_password_authentication is defined els {% if listen_address %} # Specifies the local addresses sshd should listen on -{% if listen_address is string %} -ListenAddress {{ listen_address }} -{% else %} -{% for address in listen_address %} +{% for address in listen_address %} ListenAddress {{ address }} -{% endfor %} -{% endif %} +{% endfor %} {% endif %} {% if ciphers %} |