瀏覽代碼

enable put salt minion proxy host to empty string

When proxy parameter was defined and host is empty string, salt is complaining with warning. With this patch when host is empty parameters are not used.

Change-Id: I11150e5f141182d5934564611d6c39b2b379b5e9
pull/73/head
Ondrej Smola 6 年之前
父節點
當前提交
44358fe688
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      salt/files/minion.conf

+ 1
- 1
salt/files/minion.conf 查看文件

@@ -69,7 +69,7 @@ mine_interval: {{ minion.mine.get('interval', 30) }}
log_level: {{ minion.log.get('level', 'error') }}
state_output: {{ minion.log.get('state_output', 'changes') }}

{%- if minion.proxy is defined %}
{%- if minion.get('proxy', {}).get('host', "") != "" %}
proxy_host: {{ minion.proxy.host }}
proxy_port: {{ minion.proxy.port }}
{%- endif %}

Loading…
取消
儲存