From c9c98b3bdbcadd5ea7c354ef7c2fd4535f612cd9 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Wed, 16 Mar 2022 12:39:17 +0100 Subject: [PATCH] common: updating the "+beta" user agent to be behind the 4.0 feature toggle --- internal/common/client_options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/common/client_options.go b/internal/common/client_options.go index dedd747c7701..b8330a62f929 100644 --- a/internal/common/client_options.go +++ b/internal/common/client_options.go @@ -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))