瀏覽代碼

add defined check in streams config

pull/276/head
Thomas Thorburn 3 年之前
父節點
當前提交
3df82ac328
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      nginx/streams.sls

+ 4
- 2
nginx/streams.sls 查看文件

@@ -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…
取消
儲存