Skip to content

Commit

Permalink
Properly advertise the client requests.
Browse files Browse the repository at this point in the history
Need to work out how to better handle the version information.
  • Loading branch information
cheftako committed May 9, 2024
1 parent 1b48ee4 commit 3da6073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
const uaEnvVar = "TF_APPEND_USER_AGENT"

func CompileUserAgentString(ctx context.Context, name, tfVersion, provVersion string) string {
ua := fmt.Sprintf("Terraform/%s (+https://www.terraform.io) Terraform-Plugin-SDK/%s %s/%s", tfVersion, "terraform-plugin-framework", name, provVersion)
iua := fmt.Sprintf("kcc/1.117.0 (+https://github.com/GoogleCloudPlatform/k8s-config-connector) %s/%s", name, provVersion)

if add := os.Getenv(uaEnvVar); add != "" {
add = strings.TrimSpace(add)
Expand Down

0 comments on commit 3da6073

Please sign in to comment.