Fix Ansible inventory parsing double loop.
@@ -56,7 +56,7 @@ def _parse_ansible_hosts(hosts):
hostname = host.replace(expand_string, number_as_string)
yield hostname
- continue
+ else:
yield host
@@ -75,7 +75,6 @@ def make_names_data(inventory_filename=None):
continue
options = config.options(section)
- for option in options:
for host in _parse_ansible_hosts(options):
hosts.append(host)
host_to_groups[host].add(section)
