add check that vars plugins are not handing back None
This commit is contained in:
parent
ea8cb0b2e9
commit
3fcc591f18
1 changed files with 2 additions and 1 deletions
|
@ -282,6 +282,7 @@ class Inventory(object):
|
||||||
vars = {}
|
vars = {}
|
||||||
for ip in self._vars_plugins:
|
for ip in self._vars_plugins:
|
||||||
updated = ip.run(host)
|
updated = ip.run(host)
|
||||||
|
if updated is not None:
|
||||||
vars.update(updated)
|
vars.update(updated)
|
||||||
|
|
||||||
if self._is_script:
|
if self._is_script:
|
||||||
|
|
Loading…
Reference in a new issue