commit | 5d7f35c5c62d9277263e0a30c007eb34265e8f3e | [log] [tgz] |
---|---|---|
author | Ales Komarek <ales.komarek@tcpcloud.eu> | Mon Mar 14 17:20:26 2016 +0100 |
committer | Ales Komarek <ales.komarek@tcpcloud.eu> | Mon Mar 14 17:20:26 2016 +0100 |
tree | 2a3cc84809ea0785a7b526e3d6324f003cec1073 | |
parent | 878ea32824e0006122863aff478ec493a12e0804 [diff] |
Better localhosts reorder conditional
diff --git a/linux/network/host.sls b/linux/network/host.sls index 22227b6..f554453 100644 --- a/linux/network/host.sls +++ b/linux/network/host.sls
@@ -12,7 +12,7 @@ {%- 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 %}