mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Fixing a few bugs in the HostVars performance areas
* Also refresh inventory in the HostVars manager process when things are changed via add_host/group_by * Raise j2undefined rather than return it
This commit is contained in:
parent
4d024fc82a
commit
9f31c073fe
4 changed files with 13 additions and 6 deletions
|
@ -198,11 +198,13 @@ class TaskQueueManager:
|
|||
'hostvars',
|
||||
callable=lambda: hostvars,
|
||||
# FIXME: this is the list of exposed methods to the DictProxy object, plus our
|
||||
# one special one (set_variable_manager). There's probably a better way
|
||||
# special ones (set_variable_manager/set_inventory). There's probably a better way
|
||||
# to do this with a proper BaseProxy/DictProxy derivative
|
||||
exposed=('set_variable_manager', '__contains__', '__delitem__', '__getitem__',
|
||||
'__len__', '__setitem__', 'clear', 'copy', 'get', 'has_key', 'items',
|
||||
'keys', 'pop', 'popitem', 'setdefault', 'update', 'values'),
|
||||
exposed=(
|
||||
'set_variable_manager', 'set_inventory', '__contains__', '__delitem__',
|
||||
'__getitem__', '__len__', '__setitem__', 'clear', 'copy', 'get', 'has_key',
|
||||
'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values'
|
||||
),
|
||||
)
|
||||
self._hostvars_manager = HostVarsManager()
|
||||
self._hostvars_manager.start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue