Skip to content

Commit

Permalink
🐛 fix scan with no upstream config err
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey committed Sep 15, 2023
1 parent c5f61bc commit 5c85e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/aws/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (s *Service) connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}

var upstream *upstream.UpstreamClient
if req.Upstream != nil {
if req.Upstream != nil && req.Upstream.ApiEndpoint != "" {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down

0 comments on commit 5c85e11

Please sign in to comment.