Skip to content

Commit

Permalink
add check that vars plugins are not handing back None
Browse files Browse the repository at this point in the history
  • Loading branch information
skvidal committed Oct 29, 2012
1 parent ea8cb0b commit 3fcc591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ansible/inventory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def _get_variables(self, hostname):
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(
Expand Down

0 comments on commit 3fcc591

Please sign in to comment.