mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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,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(
|
||||
|
|
Loading…
Reference in a new issue