You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In apache/config/vhosts/standard.sls lines 8-11 attempt to make a copy of the 'apache' variable to 'map' and then trim to only include the 'sites' data but instead of making a copy it just makes a reference. This causes the map.pop to trim the 'apache' variable as well as the 'map' variable.
Steps to reproduce the bug
Expected behaviour
map.pop should trim only the 'map' variable, not the 'apache' variable.
Attempts to fix the bug
Just need to tell it to copy the variable instead of creating a reference by changing from:
{%- set map = apache %}
{%- do map.pop('sites', None) %}
TO
{%- set map = apache.copy() %}
{%- do map.pop('sites', None) %}
Additional context
The text was updated successfully, but these errors were encountered:
Your setup
Formula commit hash / release tag
apache-formula 1.2.2
Versions reports (master & minion)
Pillar / config used
Bug details
Describe the bug
In apache/config/vhosts/standard.sls lines 8-11 attempt to make a copy of the 'apache' variable to 'map' and then trim to only include the 'sites' data but instead of making a copy it just makes a reference. This causes the map.pop to trim the 'apache' variable as well as the 'map' variable.
Steps to reproduce the bug
Expected behaviour
map.pop should trim only the 'map' variable, not the 'apache' variable.
Attempts to fix the bug
Just need to tell it to copy the variable instead of creating a reference by changing from:
TO
Additional context
The text was updated successfully, but these errors were encountered: