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 %}
|
||||
{% for k, v in records.items() %}
|
||||
{% if v is mapping %}
|
||||
{% if not k.endswith('.') %}
|
||||
{{ generate_records(v, k + ('.' + scope if scope != '@' else '')) }}
|
||||
{%- elif k.endswith('.' + item + '.') or k == (item + '.') %}
|
||||
{% if not (k|string).endswith('.') %}
|
||||
{{ generate_records(v, (k|string) + ('.' + scope if scope != '@' else '')) }}
|
||||
{%- elif (k|string).endswith('.' + item + '.') or (k|string) == (item + '.') %}
|
||||
{{ generate_records(v, k) }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue