Skip to content

Commit

Permalink
include provider version in the user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonsnir committed Sep 3, 2024
1 parent f9fbc16 commit c101f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (p *NetlifyProvider) Configure(ctx context.Context, req provider.ConfigureR

apiConfig := netlifyapi.NewConfiguration()
apiConfig.Servers[0].URL = url.String()
apiConfig.UserAgent = "Terraform Provider"
apiConfig.UserAgent = "Terraform Provider/" + p.version
apiConfig.AddDefaultHeader("Authorization", "Bearer "+token)
// TODO: Add debug/trace logging to the API client, perhaps by overriding the behavior of apiConfig.Debug
p.client = netlifyapi.NewAPIClient(apiConfig)
Expand Down

0 comments on commit c101f75

Please sign in to comment.