diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-08-12 15:48:55 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-08-12 15:10:06 +0000 |
| commit | 2235b7c2d4bfb5d187135362cf1f3f0e708972df (patch) | |
| tree | df2478382a5a6fc75e6050d3885bb21736b9e48e /vm | |
| parent | 6ba02fb7c5dd2e8985ade7303b33c940d4d1d6a9 (diff) | |
all: pkg/gcs supports AppEngine context
Diffstat (limited to 'vm')
| -rw-r--r-- | vm/gce/gce.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) } |
