add support for ints as record name
This commit is contained in:
parent
fcee6b0f36
commit
144736d652
1 changed files with 3 additions and 3 deletions
|
|
@ -15,9 +15,9 @@ $TTL 60
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for k, v in records.items() %}
|
{% for k, v in records.items() %}
|
||||||
{% if v is mapping %}
|
{% if v is mapping %}
|
||||||
{% if not k.endswith('.') %}
|
{% if not (k|string).endswith('.') %}
|
||||||
{{ generate_records(v, k + ('.' + scope if scope != '@' else '')) }}
|
{{ generate_records(v, (k|string) + ('.' + scope if scope != '@' else '')) }}
|
||||||
{%- elif k.endswith('.' + item + '.') or k == (item + '.') %}
|
{%- elif (k|string).endswith('.' + item + '.') or (k|string) == (item + '.') %}
|
||||||
{{ generate_records(v, k) }}
|
{{ generate_records(v, k) }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue