Skip to content

Commit c101f75

Browse files
committed
include provider version in the user agent
1 parent f9fbc16 commit c101f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (p *NetlifyProvider) Configure(ctx context.Context, req provider.ConfigureR
156156

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

0 commit comments

Comments
 (0)