Skip to content

Commit

Permalink
set version and header
Browse files Browse the repository at this point in the history
  • Loading branch information
zl0ty committed Jan 14, 2025
1 parent d240913 commit 657c7e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudconnexa/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const (
ClientSecretEnvVar = "CLOUDCONNEXA_CLIENT_SECRET"
)

var (
version = "v0.5.0"
)

type Token struct {
AccessToken string `json:"access_token"`
}
Expand Down Expand Up @@ -80,6 +84,7 @@ func providerConfigure(ctx context.Context, d *schema.ResourceData) (interface{}
clientSecret := d.Get("client_secret").(string)
baseUrl := d.Get("base_url").(string)
cloudConnexaClient, err := cloudconnexa.NewClient(baseUrl, clientId, clientSecret)
cloudConnexaClient.UserAgent = fmt.Sprintf("terraform-provider-cloudconnexa/%v", version)
var diags diag.Diagnostics
if err != nil {
diags = append(diags, diag.Diagnostic{
Expand Down

0 comments on commit 657c7e1

Please sign in to comment.