Skip to content
Snippets Groups Projects

Consider empty public_endpoint.domains list to be the same as unset

Merged ale requested to merge empty-domains-list into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -3,7 +3,7 @@
@@ -3,7 +3,7 @@
{# Create certificates for all the HTTP public endpoints #}
{# Create certificates for all the HTTP public endpoints #}
{% for pe in service.get('public_endpoints', []) if pe.get('name') and not pe.get('skip_acme', False) and pe.get('path', '/') == '/' %}
{% for pe in service.get('public_endpoints', []) if pe.get('name') and not pe.get('skip_acme', False) and pe.get('path', '/') == '/' %}
- names:
- names:
{% if pe.domains is defined %}
{% if pe.domains %}
{% for d in pe.domains %}
{% for d in pe.domains %}
- "{{ d }}"
- "{{ d }}"
{% endfor %}
{% endfor %}
Loading