Add fallback for locations without lines but target

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-25 13:51:31 +01:00
parent 781a9667e5
commit 6cd4e1d1f2
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -109,7 +109,7 @@ http {
{% for location in server.locations | default([]) %} {% for location in server.locations | default([]) %}
location {{ location.path }} { location {{ location.path }} {
{% for line in location.location_lines %} {% for line in location.location_lines | default([]) %}
{{ line }} {{ line }}
{% endfor %} {% endfor %}
{% if location.target is defined %} {% if location.target is defined %}