From 700db154520b9124fe1f4f201430923bd9bff2c4 Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Fri, 1 Apr 2016 20:37:43 -0700 Subject: [PATCH] fix unconfigured plugin path case We tried to expand paths for None- ensure we're not passing [None] in that case, but [] instead. --- lib/ansible/plugins/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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