Skip to content

Commit

Permalink
Merge pull request #641 from Juniper/feat/640-user-agent
Browse files Browse the repository at this point in the history
Introduce User-Agent string
  • Loading branch information
chrismarget-j committed Apr 6, 2024
2 parents ed37d1e + 64f3f79 commit 13156a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions apstra/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest,
resp.Diagnostics.AddError("Error creating Apstra client configuration", err.Error())
return
}
clientCfg.UserAgent = fmt.Sprintf("terraform-provider-apstra/%s", p.Version)

// Set the experimental flag according to the configuration
clientCfg.Experimental = config.Experimental.ValueBool()
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ module github.com/Juniper/terraform-provider-apstra

go 1.21

// replace github.com/Juniper/apstra-go-sdk => ../apstra-go-sdk

toolchain go1.21.1

require (
github.com/IBM/netaddr v1.5.0
github.com/Juniper/apstra-go-sdk v0.0.0-20240404165005-2694f0e54d6f
github.com/Juniper/apstra-go-sdk v0.0.0-20240406011518-9a3b3d3b8a49
github.com/chrismarget-j/go-licenses v0.0.0-20240224210557-f22f3e06d3d4
github.com/google/go-cmp v0.6.0
github.com/goreleaser/goreleaser v1.23.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ=
github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
github.com/IBM/netaddr v1.5.0 h1:IJlFZe1+nFs09TeMB/HOP4+xBnX2iM/xgiDOgZgTJq0=
github.com/IBM/netaddr v1.5.0/go.mod h1:DDBPeYgbFzoXHjSz9Jwk7K8wmWV4+a/Kv0LqRnb8we4=
github.com/Juniper/apstra-go-sdk v0.0.0-20240404165005-2694f0e54d6f h1:4e43xhp3M730kAU+RtCvZxVkBRmGcb9GdXYXqbXZmag=
github.com/Juniper/apstra-go-sdk v0.0.0-20240404165005-2694f0e54d6f/go.mod h1:Xwj3X8v/jRZWv28o6vQAqD4lz2JmzaSYLZ2ch1SS89w=
github.com/Juniper/apstra-go-sdk v0.0.0-20240406011518-9a3b3d3b8a49 h1:WHW5BHKk0dT0Z/Assq7j+q8bcY+ValOavjXmTU2dxgo=
github.com/Juniper/apstra-go-sdk v0.0.0-20240406011518-9a3b3d3b8a49/go.mod h1:Xwj3X8v/jRZWv28o6vQAqD4lz2JmzaSYLZ2ch1SS89w=
github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0=
github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc=
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
Expand Down

0 comments on commit 13156a2

Please sign in to comment.