diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py index f16bb0e6e5..c10d19cd38 100644 --- a/lib/ansible/plugins/__init__.py +++ b/lib/ansible/plugins/__init__.py @@ -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