From 2235b7c2d4bfb5d187135362cf1f3f0e708972df Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Mon, 12 Aug 2024 15:48:55 +0200 Subject: all: pkg/gcs supports AppEngine context --- vm/gce/gce.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 19fd1eecd..dbed89bee 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -15,6 +15,7 @@ import ( "archive/tar" "bytes" "compress/gzip" + "context" "errors" "fmt" "io" @@ -491,7 +492,7 @@ func (inst *instance) getSerialPortOutput() ([]byte, error) { } func uploadImageToGCS(localImage, gcsImage string) error { - GCS, err := gcs.NewClient() + GCS, err := gcs.NewClient(context.Background()) if err != nil { return fmt.Errorf("failed to create GCS client: %w", err) } -- cgit mrf-deployment