mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Clear the plugin path cache when adding new directories
This commit is contained in:
parent
dce94ec3c6
commit
5a57313dd7
1 changed files with 1 additions and 0 deletions
|
@ -219,6 +219,7 @@ class PluginLoader:
|
||||||
if directory not in self._extra_dirs:
|
if directory not in self._extra_dirs:
|
||||||
# append the directory and invalidate the path cache
|
# append the directory and invalidate the path cache
|
||||||
self._extra_dirs.append(directory)
|
self._extra_dirs.append(directory)
|
||||||
|
self._plugin_path_cache.clear()
|
||||||
self._paths = None
|
self._paths = None
|
||||||
|
|
||||||
def find_plugin(self, name, mod_type=''):
|
def find_plugin(self, name, mod_type=''):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue