mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Merge pull request #59 from blacksmith77/master
allow-transfer rendered only if defined
This commit is contained in:
commit
50b37ea28c
1 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,6 @@ zone "{{ key }}" {
|
|||
{% else -%}
|
||||
file "{{ map.named_directory }}/{{ file }}";
|
||||
{%- endif %}
|
||||
|
||||
{% if args['allow-update'] is defined -%}
|
||||
allow-update { {{args['allow-update']}}; };
|
||||
{%- endif %}
|
||||
|
@ -36,11 +35,13 @@ zone "{{ key }}" {
|
|||
{%- endfor %}
|
||||
};
|
||||
{%- endif %}
|
||||
{%- if args['allow-transfer'] is defined -%}
|
||||
allow-transfer {
|
||||
{% for remote in args.get('allow-transfer', {}) %}
|
||||
{%- for remote in args.get('allow-transfer', {}) -%}
|
||||
{{ remote }};
|
||||
{% endfor %}
|
||||
{%- endfor -%}
|
||||
};
|
||||
{%- endif -%}
|
||||
{% if args['type'] == "master" -%}
|
||||
{% if args['notify'] -%}
|
||||
notify yes;
|
||||
|
|
Loading…
Add table
Reference in a new issue