-
Notifications
You must be signed in to change notification settings - Fork 1.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
Use new client invocation with client libs #1704
Use new client invocation with client libs #1704
Conversation
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.
👍 pending the 1 comment.
@@ -143,161 +143,161 @@ func (c *Config) LoadAndValidate() error { | |||
c.userAgent = userAgent | |||
|
|||
log.Printf("[INFO] Instantiating GCE client...") | |||
c.clientCompute, err = compute.New(client) | |||
c.clientCompute, err = compute.NewService(context.Background(), option.WithHTTPClient(client)) |
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.
We should instantiate context.Background
a single time and pass the shared object to all these clients. This will allow us to create a context tree that can allow cancelling 1 or all requests when the parent is cancelled.
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.
Not sure it does anything- we never cancel the parent anyways, and most requests end pretty soon- but done.
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in Ansible. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
(magician is red because I ran the job by hand after fixing the broken downstream) |
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
2c334c4
to
086ea30
Compare
Required for hashicorp/terraform-provider-google#3529, hashicorp/terraform-provider-google-beta#650 to pass Travis, both of those are required for this pass
terraform-test
I think[all]
[terraform]
[terraform-beta]
[ansible]
[inspec]