Skip to content
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: Use real Terraform version in UA header #182

Merged
merged 2 commits into from
Oct 9, 2019

Conversation

radeksimko
Copy link
Contributor

@radeksimko radeksimko commented Aug 1, 2019

Depends on https://github.com/terraform-providers/terraform-provider-fastly/pull/187


The existing implementation leverages Terraform's version package as Terraform currently provides the SDK for interacting with core and is therefore imported by the provider, including the version package.

The side effect of this is that provider reports version of vendored Terraform (i.e. plugin SDK), not the version which actually talks to the provider's gRPC server and parses the configuration.

This PR is leveraging recent changes introduced in 0.12 to fix that and report accurate version.


This also changes the header from the following

Terraform/X.Y.Z terraform-provider-fastly/X.Y.Z

to

HashiCorp Terraform/X.Y.Z (+https://www.terraform.io) terraform-provider-fastly/X.Y.Z

to align UA string with hashicorp/terraform#22272

@radeksimko radeksimko force-pushed the f-user-agent branch 2 times, most recently from e248760 to fd88995 Compare August 22, 2019 08:07
@radeksimko radeksimko marked this pull request as ready for review August 22, 2019 08:13
Copy link
Member

@philippschulte philippschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @radeksimko for upgrading Terraform and for fixing deprecation issues!

@philippschulte philippschulte merged commit c5e67a8 into master Oct 9, 2019
@philippschulte philippschulte deleted the f-user-agent branch October 9, 2019 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants