Skip to content

Commit 59502ab

Browse files
committed
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
1 parent 3310f90 commit 59502ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bind/config.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ bind_rndc_client_config:
168168
{%- endif %}
169169
{% endif %}
170170
171-
{%- set views = salt['pillar.get']('bind:configured_views', {}) %}
172-
{%- do views.update({False: salt['pillar.get']('bind', {})}) %}{# process non-view zones in the same loop #}
171+
{%- set views = {False: salt['pillar.get']('bind', {})} %}{# process non-view zones in the same loop #}
172+
{%- do views.update(salt['pillar.get']('bind:configured_views', {})) %}
173173
{%- for view, view_data in views.items() %}
174174
{%- set dash_view = '-' + view if view else '' %}
175175
{% for zone, zone_data in view_data.get('configured_zones', {}).items() -%}

0 commit comments

Comments
 (0)