mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-17 10:10:26 +00:00
Do not modify configured_views dict
the pillar dict is passed by reference so we should not update it, update a newly created dict instead
This commit is contained in:
parent
3310f90bb2
commit
59502abac3
1 changed files with 2 additions and 2 deletions
|
@ -168,8 +168,8 @@ bind_rndc_client_config:
|
|||
{%- endif %}
|
||||
{% endif %}
|
||||
|
||||
{%- set views = salt['pillar.get']('bind:configured_views', {}) %}
|
||||
{%- do views.update({False: salt['pillar.get']('bind', {})}) %}{# process non-view zones in the same loop #}
|
||||
{%- set views = {False: salt['pillar.get']('bind', {})} %}{# process non-view zones in the same loop #}
|
||||
{%- do views.update(salt['pillar.get']('bind:configured_views', {})) %}
|
||||
{%- for view, view_data in views.items() %}
|
||||
{%- set dash_view = '-' + view if view else '' %}
|
||||
{% for zone, zone_data in view_data.get('configured_zones', {}).items() -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue