add defined check in streams config

This commit is contained in:
Thomas Thorburn 2021-07-12 15:23:18 +02:00
parent 536992a8e4
commit 3df82ac328

View File

@ -8,8 +8,10 @@
{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
{%- set _nginx = nginx.copy() %}
{%- do _nginx.pop('streams') %}
{%- do _nginx.pop('servers') %}
{%- do _nginx.pop('streams') if nginx.snippets is defined %}
{%- do _nginx.pop('servers') if nginx.servers is defined %}
nginx_streams_dir:
file.directory: