summaryrefslogtreecommitdiff
path: root/data/templates/login/authorized_keys.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-13 22:53:57 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-13 22:55:46 +0200
commit19859c09dd33a1126dc4b0d5cd0dbe309ed78ac2 (patch)
tree36122728a5c8a172b82443860e07ea83206c5384 /data/templates/login/authorized_keys.tmpl
parent4df48d5713398800a74aae7f69932e9219a46f24 (diff)
downloadvyos-1x-19859c09dd33a1126dc4b0d5cd0dbe309ed78ac2.tar.gz
vyos-1x-19859c09dd33a1126dc4b0d5cd0dbe309ed78ac2.zip
login: radius: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/login/authorized_keys.tmpl')
-rw-r--r--data/templates/login/authorized_keys.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/login/authorized_keys.tmpl b/data/templates/login/authorized_keys.tmpl
index 639a80e1d..9402c8719 100644
--- a/data/templates/login/authorized_keys.tmpl
+++ b/data/templates/login/authorized_keys.tmpl
@@ -1,9 +1,9 @@
### Automatically generated by system-login.py ###
-{% if authentication is defined and authentication.public_keys is defined and authentication.public_keys is not none %}
+{% if authentication.public_keys is vyos_defined %}
{% for key, key_options in authentication.public_keys.items() %}
{# The whitespace after options is wisely chosen #}
-{{ key_options.options + ' ' if key_options.options is defined }}{{ key_options.type }} {{ key_options.key }} {{ key }}
+{{ key_options.options ~ ' ' if key_options.options is vyos_defined }}{{ key_options.type }} {{ key_options.key }} {{ key }}
{% endfor %}
{% endif %}