Browse Source

Better localhosts reorder conditional

tags/2016.12
Ales Komarek 8 years ago
parent
commit
5d7f35c5c6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/network/host.sls

+ 1
- 1
linux/network/host.sls View File

@@ -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…
Cancel
Save