Skip to content
Snippets Groups Projects
Commit fbe9f4db authored by ale's avatar ale
Browse files

Fix error

parent 266abd6e
No related branches found
No related tags found
1 merge request!249Support IPv6-only networks
......@@ -558,7 +558,7 @@ def _any_attribute_set(services, attr):
# Pre-process inventory entries, to normalize host variables and
# provide defaults (thus simplifying the jinja template logic).
def _preprocess_inventory(inventory):
for host in inventory['hosts']:
for host in inventory['hosts'].values():
# Set 'ips' if the legacy variables are set.
if 'ips' not in host:
host['ips'] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment