Pārlūkot izejas kodu

Better localhosts reorder conditional

tags/2016.12
Ales Komarek pirms 8 gadiem
vecāks
revīzija
5d7f35c5c6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      linux/network/host.sls

+ 1
- 1
linux/network/host.sls Parādīt failu

@@ -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 %}

Notiek ielāde…
Atcelt
Saglabāt