-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Terraform Azure Partner ID #4663
Conversation
} else { | ||
// otherwise, if pid is not present in config files, send Terraform GUID | ||
terraformGUID := "222c6c49-1b0a-5959-a213-6608f9eb8820" | ||
client.UserAgent = fmt.Sprintf("%s pid-%s", client.UserAgent, terraformGUID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use only a single Sprintf after the if else (with a local variable), to eliminate the code duplication?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client.UserAgent = fmt.Sprintf("%s pid-%s", client.UserAgent, terraformGUID) | |
if partnerID == "" { | |
partnerID := "222c6c49-1b0a-5959-a213-6608f9eb8820" | |
} | |
client.UserAgent = fmt.Sprintf("%s pid-%s", client.UserAgent, partnerID) |
Hi @echuvyrov, Could you please explain the rationale for this PR & change? What does that GUID represent? |
This has been released in version 1.36.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.36.0"
}
# ... other configuration ... |
Sorry, this change is absolutely unacceptable. I've created #4747 to remove the default partner_id. |
To ask same as @katbyte |
Apologies for not responding to this right away. As Mitchell mentioned in his response, @katbyte and I work together on the Terraform provider for Azure (although she does all the heavy lifting). We have weekly syncs where we discuss issues that our joint customers bring to us and pending PRs. We discussed the Partner ID integration during one of the calls and did not loop back around to respond on the PR what had been discussed. That was a major oversight that we will work to avoid in the future. |
@echuvyrov Thanks for clarifying. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Added Terraform Azure Partner GUID