-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/openstack: Add Terraform version to UserAgent string #14955
Conversation
@jtopjian Thought this would be useful to add :) |
@fatmcgav Yep, definitely useful. Looking at the other implementations of this, they all have HashiCorp in the agent, too, so how about:
|
@jtopjian Yep, can make that tweak... I did look at other providers and didn't see a real standard... |
Wouldn't it make sense to create one helper function to render the user agent for every provider? I don't think it makes sense to manually try to keep the user agent implementation the same? |
Yeah, it looks like a mix of agent types. I saw that most of them had "HashiCorp" in the name, which is why I suggested it.
I agree. Or at least standardize on a name. @stack72 thoughts? |
There is a 'VersionHeader' But it still needs to be used to construct a header... Edit: Actually, that |
@stack72 / @jtopjian Thoughts on fatmcgav@76fbe83 |
That looks good to me :) |
Cool, ok.. I'll see if I can stick a quick test case on it... Would it be better as a separate PR, or happy for it to be included in this one? |
You can include it here :) |
…erAgent string. Example generation: 'Terraform 0.9.7-dev (go1.8.1)'
0600459
to
7c7d58e
Compare
Cool, ok... PR updated :) |
Nice - thanks @fatmcgav! You're on a roll :) |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Just because it's useful... :)