diff --git a/contrib/inventory/infoblox.py b/contrib/inventory/infoblox.py index 736333faf1..7eb4a6a418 100755 --- a/contrib/inventory/infoblox.py +++ b/contrib/inventory/infoblox.py @@ -114,7 +114,7 @@ def main(): if key.startswith('ansible_'): hostvars[name][key] = value else: - if 'extattrs' not in hostvars: + if 'extattrs' not in hostvars[name]: hostvars[name]['extattrs'] = {} hostvars[name]['extattrs'][key] = value