Browse Source

output_list_if_set takes three arguments

tags/v1.0
Maximilian Eschenbacher 6 years ago
parent
commit
37166cf71b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      wireguard/files/wg.conf

+ 1
- 1
wireguard/files/wg.conf View File

@@ -3,7 +3,7 @@
{{output_key}} = {{object.get('lookup_key')}}
{%- endif %}
{%- endmacro %}
{%- macro output_list_if_set(lookup_key, output_key) %}
{%- macro output_list_if_set(object, lookup_key, output_key) %}
{%- for item in object.get(lookup_key, []) %}
{{output_key}} = {{item}}
{%- endfor %}

Loading…
Cancel
Save