Skip to content

Commit

Permalink
🐛 fix scan with no upstream config err (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Sep 18, 2023
1 parent 2226dc3 commit 62df204
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/arista/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/aws/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/azure/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/equinix/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/gcp/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/github/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/gitlab/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/google-workspace/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/ipmi/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/k8s/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/ms365/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/network/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/oci/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/okta/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/opcua/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/os/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/slack/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/terraform/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/vcd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion providers/vsphere/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.Incognito {
upstream, err = req.Upstream.InitClient()
if err != nil {
return nil, err
Expand Down

0 comments on commit 62df204

Please sign in to comment.