瀏覽代碼

Better localhosts reorder conditional

tags/2016.12
Ales Komarek 8 年之前
父節點
當前提交
5d7f35c5c6
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      linux/network/host.sls

+ 1
- 1
linux/network/host.sls 查看文件

@@ -12,7 +12,7 @@ linux_host_{{ name }}:

{%- if host.address in grains.ipv4 %}

{%- if host.names.1 in host.names.0 %}
{%- if host.names|length > 1 and host.names.1 in host.names.0 %}
{%- set before = host.names.1 + " " + host.names.0 %}
{%- set after = host.names.0 + " " + host.names.1 %}
{%- elif host.names.0 in host.names.1 %}

Loading…
取消
儲存