Skip to content

Commit

Permalink
common: updating the "+beta" user agent to be behind the 4.0 feature …
Browse files Browse the repository at this point in the history
…toggle
  • Loading branch information
tombuildsstuff committed Mar 18, 2022
1 parent f16bb65 commit 1123684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/common/client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func setUserAgent(client *autorest.Client, tfVersion, partnerID string, disableT
tfUserAgent := fmt.Sprintf("HashiCorp Terraform/%s (+https://www.terraform.io) Terraform Plugin SDK/%s", tfVersion, meta.SDKVersionString())

providerUserAgent := fmt.Sprintf("%s terraform-provider-azurerm/%s", tfUserAgent, version.ProviderVersion)
if features.ThreePointOhBeta() {
providerUserAgent = fmt.Sprintf("%s terraform-provider-azurerm/%s+3.0-beta", tfUserAgent, version.ProviderVersion)
if features.FourPointOhBeta() {
providerUserAgent = fmt.Sprintf("%s terraform-provider-azurerm/%s+4.0-beta", tfUserAgent, version.ProviderVersion)
}
client.UserAgent = strings.TrimSpace(fmt.Sprintf("%s %s", client.UserAgent, providerUserAgent))

Expand Down

0 comments on commit 1123684

Please sign in to comment.