Browse Source

add defined check in streams config

pull/276/head
Thomas Thorburn 3 years ago
parent
commit
3df82ac328
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      nginx/streams.sls

+ 4
- 2
nginx/streams.sls 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:

Loading…
Cancel
Save