mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
add check that vars plugins are not handing back None
This commit is contained in:
@@ -282,7 +282,8 @@ 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)
|
||||||
vars.update(updated)
|
if updated is not None:
|
||||||
|
vars.update(updated)
|
||||||
|
|
||||||
if self._is_script:
|
if self._is_script:
|
||||||
cmd = subprocess.Popen(
|
cmd = subprocess.Popen(
|
||||||
|
|||||||
Reference in New Issue
Block a user