fixed an issue where a lookup would fail due to recursive children

This commit is contained in:
Kevin Carter 2014-09-23 10:36:21 -05:00
parent 9946a51db6
commit 896896d9b7

View File

@ -435,7 +435,7 @@ def _add_additional_networks(key, inventory, ip_q, k_name, netmask):
"""
base_hosts = inventory['_meta']['hostvars']
addr_name = '%s_address' % k_name
lookup = inventory[key]
lookup = inventory.get(key, list())
if 'children' in lookup and lookup['children']:
for group in lookup['children']: