Plugins: Use plugin.pluginDir as source of truth for plugin location (#36711)

* use plugin.pluginDir as source of truth for plugin location

* correct the interface
This commit is contained in:
Will Browne
2021-07-15 09:08:25 +02:00
committed by GitHub
parent e82f8dbef9
commit 94688be398
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -786,7 +786,7 @@ func (pm *PluginManager) Uninstall(ctx context.Context, pluginID string) error {
return err
}
return pm.pluginInstaller.Uninstall(ctx, pluginID, pm.Cfg.PluginsPath)
return pm.pluginInstaller.Uninstall(ctx, plugin.PluginDir)
}
func (pm *PluginManager) unregister(plugin *plugins.PluginBase) error {