Skip to content

Commit

Permalink
Merge pull request #134 from pulumi/friel/issue53
Browse files Browse the repository at this point in the history
Add 'pulumi' to user agent for Databricks API requests
  • Loading branch information
AaronFriel authored Jun 7, 2023
2 parents 9651a09 + 892cfc5 commit 03b28ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"path/filepath"

"github.com/databricks/databricks-sdk-go/useragent"
databricksProv "github.com/databricks/terraform-provider-databricks/provider"
"github.com/pulumi/pulumi-databricks/provider/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
Expand All @@ -42,6 +43,8 @@ const (

// Provider returns additional overlaid schema and metadata associated with the provider..
func Provider() tfbridge.ProviderInfo {
// Set the user agent to the provider version, this is not the version of the Pulumi CLI.
useragent.WithUserAgentExtra("pulumi", version.Version)
// Instantiate the Terraform provider
p := shimv2.NewProvider(databricksProv.DatabricksProvider())

Expand Down

0 comments on commit 03b28ad

Please sign in to comment.