Accept single hostkey as a string too

This commit is contained in:
Jakub Jelen 2020-11-21 00:23:30 +01:00
parent bb979290db
commit f12b322aae

View file

@ -39,7 +39,11 @@
{% if not sshd_verify_hostkeys %} {% if not sshd_verify_hostkeys %}
[] []
{% elif sshd_verify_hostkeys == 'auto' %} {% elif sshd_verify_hostkeys == 'auto' %}
{{ __sshd_hostkeys_from_config }} {% if sshd_HostKey is string %}
[ {{ __sshd_hostkeys_from_config }} ]
{% else %}
{{ __sshd_hostkeys_from_config }}
{% endif %}
{% else %} {% else %}
{{ sshd_verify_hostkeys | to_json }} {{ sshd_verify_hostkeys | to_json }}
{% endif %} {% endif %}