mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00
Fix variable set.
Set zone based on file with the .txt extension removed.
This commit is contained in:
parent
342c0d7d08
commit
e6636fe915
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ bind_rndc_client_config:
|
|||
{%- for zone, zone_data in view_data.get('configured_zones', {})|dictsort -%}
|
||||
{%- if 'file' in zone_data %}
|
||||
{%- set file = zone_data.file %}
|
||||
{%- set zone = zone|replace(".txt", "") %}
|
||||
{%- set zone = file|replace(".txt", "") %}
|
||||
{%- else %}
|
||||
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file", false) %}
|
||||
{%- endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue