From 862c439223ce5d24bd6dd65c5497f5bb96b8dae7 Mon Sep 17 00:00:00 2001 From: Clement Trebuchet Date: Wed, 31 Jan 2018 15:17:34 +0100 Subject: [PATCH] Contrib infoblox exattrs Fixes #35409 (#35410) * *FIX: re-create the exattrs dict into the hostvars[name] dict * *FIX: remove unwanted files * Fixes #35409: put an str instead of variable --- contrib/inventory/infoblox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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