Change-Id: I1bffc95697a5765f47c33dbf262e4efb10472c82pull/122/head
], | ], | ||||
} -%} | } -%} | ||||
{%- for name, host in host_dict.iteritems() -%} | {%- for name, host in host_dict.iteritems() -%} | ||||
{%- for hname in host.names -%} | |||||
{%- if hname in hosts.get('127.0.1.1', []) -%} | |||||
{%- do hosts.pop('127.0.1.1') -%} | |||||
{%- endif %} | |||||
{%- endfor %} | |||||
{%- do hosts.update({host.address: host.names}) -%} | {%- do hosts.update({host.address: host.names}) -%} | ||||
{%- endfor %} | {%- endfor %} | ||||
{% for address, entries in hosts|dictsort %} | {% for address, entries in hosts|dictsort %} |