fix empty network_hosts_entries

This commit is contained in:
Robert Kaussow 2018-12-07 23:04:58 +01:00
parent e32f3c6309
commit 2e0e7d7b52
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@
{% if network_hostname is defined and network_fqdn is defined and network_interfaces[network_defaultif].ipaddr is defined %}
{{ network_interfaces[network_defaultif].ipaddr }} {{ network_fqdn }} {{ network_hostname }}
{% endif %}
{% if network_hosts_entries %}
{% for item in network_hosts_entries %}
{{ item.address }} {{ item.fqdn }} {{ item.hostname }}
{% endfor %}
{% endif %}