From 1f886a3b2093ff10bd625b3ad9e73c4f014f99e7 Mon Sep 17 00:00:00 2001 From: Eoin McAfee Date: Thu, 5 May 2022 10:50:18 +0100 Subject: [PATCH] fixes issue where context is being used for waitGlobal operation --- drivers/google/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/google/provider.go b/drivers/google/provider.go index 365953e0..b474df70 100644 --- a/drivers/google/provider.go +++ b/drivers/google/provider.go @@ -121,7 +121,7 @@ func New(opts ...Option) (autoscaler.Provider, error) { func (p *provider) waitZoneOperation(ctx context.Context, name string, zone string) error { for { if p.rateLimiter.Allow() { - op, err := p.service.ZoneOperations.Get(p.project, zone, name).Context(ctx).Do() + op, err := p.service.ZoneOperations.Get(p.project, zone, name).Do() if err != nil { if gerr, ok := err.(*googleapi.Error); ok && gerr.Code == http.StatusNotFound { @@ -143,7 +143,7 @@ func (p *provider) waitZoneOperation(ctx context.Context, name string, zone stri func (p *provider) waitGlobalOperation(ctx context.Context, name string) error { for { if p.rateLimiter.Allow() { - op, err := p.service.GlobalOperations.Get(p.project, name).Context(ctx).Do() + op, err := p.service.GlobalOperations.Get(p.project, name).Do() if err != nil { return err }