diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index aab74eb43b1..df09d47ff98 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -282,7 +282,8 @@ class Inventory(object): vars = {} for ip in self._vars_plugins: updated = ip.run(host) - vars.update(updated) + if updated is not None: + vars.update(updated) if self._is_script: cmd = subprocess.Popen(