Skip to content

Commit

Permalink
remove unnecessary duplicate auth client after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Feb 4, 2025
1 parent 2e16ea4 commit d143bf8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,9 @@ func (c *Config) NewFabricClientForFramework(ctx context.Context, meta tfsdk.Con

// newFabricClient returns the base fabricv4 client that is then used for either the sdkv2 or framework
// implementations of the Terraform Provider with exported Methods
func (c *Config) newFabricClient(ctx context.Context) *fabricv4.APIClient {
authConfig := oauth2.Config{
ClientID: c.ClientID,
ClientSecret: c.ClientSecret,
BaseURL: c.BaseURL,
}
authClient := authConfig.New(ctx)
func (c *Config) newFabricClient(_ context.Context) *fabricv4.APIClient {
//nolint:staticcheck // We should move to subsystem loggers, but that is a much bigger change
transport := logging.NewTransport("Equinix Fabric (fabricv4)", authClient.Transport)
transport := logging.NewTransport("Equinix Fabric (fabricv4)", c.authClient.Transport)

retryClient := retryablehttp.NewClient()
retryClient.HTTPClient.Transport = transport
Expand Down

0 comments on commit d143bf8

Please sign in to comment.