From 3fcc591f18de72f82f260e55dd3cd87a61b03d0e Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 29 Oct 2012 12:11:57 -0400 Subject: [PATCH] add check that vars plugins are not handing back None --- lib/ansible/inventory/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index aab74eb43b..df09d47ff9 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(