mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
fix bug in config mgr
- use function that creates config slots as needed
This commit is contained in:
parent
87e44a7ed1
commit
652da82558
2 changed files with 3 additions and 7 deletions
2
changelogs/fragments/cfg_mgr_fix.yml
Normal file
2
changelogs/fragments/cfg_mgr_fix.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- configuration retrieval would fail on non primed plugins
|
|
@ -363,14 +363,8 @@ class ConfigManager(object):
|
||||||
# Note: sources that are lists listed in low to high precedence (last one wins)
|
# Note: sources that are lists listed in low to high precedence (last one wins)
|
||||||
value = None
|
value = None
|
||||||
origin = None
|
origin = None
|
||||||
defs = {}
|
|
||||||
if plugin_type is None:
|
|
||||||
defs = self._base_defs
|
|
||||||
elif plugin_name is None:
|
|
||||||
defs = self._plugins[plugin_type]
|
|
||||||
else:
|
|
||||||
defs = self._plugins[plugin_type][plugin_name]
|
|
||||||
|
|
||||||
|
defs = self.get_configuration_definitions(plugin_type, plugin_name)
|
||||||
if config in defs:
|
if config in defs:
|
||||||
|
|
||||||
# direct setting via plugin arguments, can set to None so we bypass rest of processing/defaults
|
# direct setting via plugin arguments, can set to None so we bypass rest of processing/defaults
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue