Skip to content

Commit

Permalink
🐛 fix searching providers by id (#2310)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Oct 20, 2023
1 parent 2721a5a commit f2f6ce5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ type Providers map[string]*Provider
// connector type first and name second.
func (p Providers) Lookup(search ProviderLookup) *Provider {
if search.ID != "" {
return p[search.ID]
for _, provider := range p {
if provider.ID == search.ID {
return provider
}
}
}

if search.ConnType != "" {
Expand Down

0 comments on commit f2f6ce5

Please sign in to comment.