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 67222e5
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion providers/arista/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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
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
2 changes: 1 addition & 1 deletion providers/azure/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.ApiEndpoint != "" {
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 @@ -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.ApiEndpoint != "" {
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 @@ -250,7 +250,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
2 changes: 1 addition & 1 deletion providers/github/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,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
2 changes: 1 addition & 1 deletion providers/gitlab/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,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
2 changes: 1 addition & 1 deletion providers/google-workspace/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,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
2 changes: 1 addition & 1 deletion providers/ipmi/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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
2 changes: 1 addition & 1 deletion providers/k8s/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,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
2 changes: 1 addition & 1 deletion providers/ms365/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,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
2 changes: 1 addition & 1 deletion providers/network/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
2 changes: 1 addition & 1 deletion providers/oci/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,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
2 changes: 1 addition & 1 deletion providers/okta/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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
2 changes: 1 addition & 1 deletion providers/opcua/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,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
2 changes: 1 addition & 1 deletion providers/os/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,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
2 changes: 1 addition & 1 deletion providers/slack/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,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
2 changes: 1 addition & 1 deletion providers/terraform/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,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
2 changes: 1 addition & 1 deletion providers/vcd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,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
2 changes: 1 addition & 1 deletion providers/vsphere/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,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 67222e5

Please sign in to comment.