fix: bug in template with array
This commit is contained in:
parent
eaf0b7e0c7
commit
58b7253198
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ object Host "{{ name }}" {
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif value is iterable and not value is string %}
|
{% elif value is iterable and not value is string %}
|
||||||
{{ var }} = [ "{{ value|join(', "') }}" ]
|
{{ var }} = [ "{{ value|join('", "') }}" ]
|
||||||
{% elif value is number or value|regex_search('^[0-9]+(s|m|h|d)$') %}
|
{% elif value is number or value|regex_search('^[0-9]+(s|m|h|d)$') %}
|
||||||
{{ var }} = {{ value }}
|
{{ var }} = {{ value }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -55,7 +55,7 @@ object Host "{{ name }}" {
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif value is iterable and not value is string %}
|
{% elif value is iterable and not value is string %}
|
||||||
vars.{{ var }} = [ "{{ value|join(', "') }}" ]
|
vars.{{ var }} = [ "{{ value|join('", "') }}" ]
|
||||||
{% elif value is number or value|regex_search('^[0-9]+(s|m|h|d)$') %}
|
{% elif value is number or value|regex_search('^[0-9]+(s|m|h|d)$') %}
|
||||||
vars.{{ var }} = {{ value }}
|
vars.{{ var }} = {{ value }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -35,7 +35,7 @@ apply Service "{{ name }}" {
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif value is iterable and not value is string %}
|
{% elif value is iterable and not value is string %}
|
||||||
vars.{{ var }} = [ "{{ value|join(', "') }}" ]
|
vars.{{ var }} = [ "{{ value|join('", "') }}" ]
|
||||||
{% elif value is number or value|regex_search('^[0-9]+(s|m|h|d)$') %}
|
{% elif value is number or value|regex_search('^[0-9]+(s|m|h|d)$') %}
|
||||||
vars.{{ var }} = {{ value }}
|
vars.{{ var }} = {{ value }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue