Quellcode durchsuchen

Merge pull request #101 from EvaSDK/master

Workaround for include being defined too early
susefix
Forrest vor 9 Jahren
Ursprung
Commit
3320a5f8bc
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. +5
    -0
      nginx/ng/files/nginx.conf

+ 5
- 0
nginx/ng/files/nginx.conf Datei anzeigen

@@ -7,8 +7,13 @@
{%- elif value is mapping -%}
{{ key|indent(ind, True) }}{{ operator }}{{ '{' }}
{%- for k, v in value.items() %}
{%- if k != 'include' %}
{{ nginx_block(v, k, operator, delim, (ind + indent_increment)) }}
{%- endif %}
{%- endfor %}
{%- if 'include' in value.keys() %}
{{ nginx_block(value['include'], 'include', operator, delim, (ind + indent_increment)) }}
{%- endif %}
{{ '}'|indent(ind, True) }}
{%- elif value is iterable -%}
{%- for v in value %}

Laden…
Abbrechen
Speichern