From 53398df3e62d8175f9066259e35051516baee37a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 3 Jul 2017 20:26:19 +0200 Subject: [PATCH] fix typo --- templates/etc/hosts.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/etc/hosts.j2 b/templates/etc/hosts.j2 index 602a2bb..48e63cb 100644 --- a/templates/etc/hosts.j2 +++ b/templates/etc/hosts.j2 @@ -4,6 +4,6 @@ {% if network_disable_ipv6 == false %} ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 {% endif %} -{% if network_hostname is defined and network_fqdn is defined and network_config[network_defaultif]_ipaddr is defined %} -{{ network_config[network_defaultif]_ipaddr }} {{ network_fqdn }} {{ network_hostname }} +{% if network_hostname is defined and network_fqdn is defined and network_config[network_defaultif].ipaddr is defined %} +{{ network_config[network_defaultif].ipaddr }} {{ network_fqdn }} {{ network_hostname }} {% endif %}