From 670536f68513e3d84556e8d06a530a611294e52a Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 27 Sep 2016 16:17:35 -0700 Subject: [PATCH] Revert "Clear the plugin path cache when adding new directories" (#17785) This reverts commit 5a57313dd72e574d38272364df3ef01d6a3646ef. --- lib/ansible/plugins/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py index 77033d85652..f5a6f112a88 100644 --- a/lib/ansible/plugins/__init__.py +++ b/lib/ansible/plugins/__init__.py @@ -219,7 +219,6 @@ class PluginLoader: if directory not in self._extra_dirs: # append the directory and invalidate the path cache self._extra_dirs.append(directory) - self._plugin_path_cache.clear() self._paths = None def find_plugin(self, name, mod_type=''):