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

Add User-Agent header to all API calls #566

Merged
merged 19 commits into from
Oct 7, 2020
Merged

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Oct 2, 2020

This PR will use new govcd functionality to send HTTP User-Agent (introduced in vmware/go-vcloud-director#336).
The sample header User-Agent: [terraform-provider-vcd/v2.9.0-16-gb1cfc7b5 (darwin/amd64; isProvider:true)] (for stable version - User-Agent: [terraform-provider-vcd/v2.9.0 (darwin/amd64; isProvider:true)])
Version is to be output of git describe. OS is described by GOOS and GOARCH. isProvider is set if Sysorg==System.

git describe is injected in during build time using go build -ldflags flag inside Makefile.
Note If user uses go install the BuildVersion variable will remain default ("unset")

In addition this PR bumps Travis config to use Go 1.15 for testing as this is the version used now.

@Didainius Didainius self-assigned this Oct 3, 2020
@Didainius Didainius marked this pull request as ready for review October 5, 2020 07:18
Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

Firs pass. LGTM
Added support for VCD 10.2 - what was change to make it work?

vcd/config.go Outdated Show resolved Hide resolved
@Didainius
Copy link
Collaborator Author

Didainius commented Oct 5, 2020

Added support for VCD 10.2 - what was change to make it work?

It was a change done previously by @dataclouder in go-vcloud-director (vmware/go-vcloud-director#327) however we have not included that note in terraform-provider-vcd changelog and I think it is quite important.

@vbauzys
Copy link
Contributor

vbauzys commented Oct 5, 2020

Added support for VCD 10.2 - what was change to make it work?

It was a change done previous by @dataclouder in go-vcloud-director (vmware/go-vcloud-director#327) however we have not included that note in terraform-provider-vcd changelog and I think it is quite important.

Let's not forget to run full test before release then for this specific version

@Didainius Didainius merged commit 2b9eb3b into vmware:master Oct 7, 2020
@Didainius Didainius deleted the user-agent branch October 7, 2020 10:18
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.

5 participants