Skip to content

Commit

Permalink
Set user-agent (#209)
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Johnson <[email protected]>
  • Loading branch information
jonjohnsonjr authored Feb 18, 2025
1 parent 7a703de commit e0b2d51
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 @@ -70,7 +70,7 @@ func (p *OCIProvider) Configure(ctx context.Context, req provider.ConfigureReque
}

kc := authn.NewMultiKeychain(google.Keychain, authn.DefaultKeychain)
ropts := []remote.Option{remote.WithAuthFromKeychain(kc)}
ropts := []remote.Option{remote.WithAuthFromKeychain(kc), remote.WithUserAgent("terraform-provider-oci")}

// These errors are impossible in current impl, but we can't return an err, so panic.
puller, err := remote.NewPuller(ropts...)
Expand Down

0 comments on commit e0b2d51

Please sign in to comment.