mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
fixes cliconf and netconf plugin loaders
This change updates the configuration and plugin loader objects for cliconf and netconf to pull be able to configure where to find the plugins.
This commit is contained in:
parent
4021194532
commit
d1ff03e84c
2 changed files with 20 additions and 2 deletions
|
@ -60,6 +60,7 @@ class PluginLoader:
|
|||
elif not config:
|
||||
config = []
|
||||
|
||||
import q; q(config)
|
||||
self.config = config
|
||||
|
||||
if class_name not in MODULE_CACHE:
|
||||
|
@ -644,7 +645,7 @@ vars_loader = PluginLoader(
|
|||
cliconf_loader = PluginLoader(
|
||||
'Cliconf',
|
||||
'ansible.plugins.cliconf',
|
||||
'cliconf_plugins',
|
||||
C.DEFAULT_CLICONF_PLUGIN_PATH,
|
||||
'cliconf_plugins',
|
||||
required_base_class='CliconfBase'
|
||||
)
|
||||
|
@ -652,7 +653,7 @@ cliconf_loader = PluginLoader(
|
|||
netconf_loader = PluginLoader(
|
||||
'Netconf',
|
||||
'ansible.plugins.netconf',
|
||||
'netconf_plugins',
|
||||
C.DEFAULT_NETCONF_PLUGIN_PATH,
|
||||
'netconf_plugins',
|
||||
required_base_class='NetconfBase'
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue