mirror of
https://github.com/turbot/steampipe.git
synced 2026-05-08 09:00:04 -04:00
Update plugin manager to remove plugin from map if startup fails. Prevents timeout when retrying to start a failed plugin. Closes #1631
This commit is contained in:
@@ -164,6 +164,10 @@ func (m *PluginManager) getPlugin(connection string) (_ *pb.ReattachConfig, err
|
||||
// so we need to start the plugin
|
||||
client, err := m.startPlugin(connection)
|
||||
if err != nil {
|
||||
m.mut.Lock()
|
||||
delete(m.Plugins, connection)
|
||||
m.mut.Unlock()
|
||||
|
||||
log.Println("[TRACE] startPlugin failed with", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user