mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-20 15:51:05 +00:00
Clear the plugin path cache when adding new directories
This commit is contained in:
@@ -219,6 +219,7 @@ 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=''):
|
||||
|
||||
Reference in New Issue
Block a user