1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
nitzmahone 2016-04-01 20:37:43 -07:00
parent dbc5cc9d7a
commit 700db15452

View file

@ -64,8 +64,10 @@ class PluginLoader:
self.subdir = subdir
self.aliases = aliases
if not isinstance(config, list):
if config and not isinstance(config, list):
config = [config]
else:
config = []
self.config = config