aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
diff options
context:
space:
mode:
Diffstat (limited to 'vm/gce')
-rw-r--r--vm/gce/gce.go3
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)
}