mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 08:43:10 +00:00
fix unconfigured plugin path case
We tried to expand paths for None- ensure we're not passing [None] in that case, but [] instead.
This commit is contained in:
@@ -64,8 +64,10 @@ class PluginLoader:
|
|||||||
self.subdir = subdir
|
self.subdir = subdir
|
||||||
self.aliases = aliases
|
self.aliases = aliases
|
||||||
|
|
||||||
if not isinstance(config, list):
|
if config and not isinstance(config, list):
|
||||||
config = [config]
|
config = [config]
|
||||||
|
else:
|
||||||
|
config = []
|
||||||
|
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user