From b68d01eea0c45f14b6bd9b54485b7f7e287d008e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 3 Jun 2017 11:48:19 +0200 Subject: vm/gce: accept local image Currently gce accepts precreated GCE image name as image config param, while all other VM types accept local file path as image. This makes it impossible to write generic code that works with all VM types, i.e. after building a new image it's unclear if it needs to be uploaded to GCE or not, and what needs to be passed as image in config. Eliminate this difference by making gce accept local image file as well. --- pkg/gcs/gcs.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg') diff --git a/pkg/gcs/gcs.go b/pkg/gcs/gcs.go index ac95ec420..0ac9fc455 100644 --- a/pkg/gcs/gcs.go +++ b/pkg/gcs/gcs.go @@ -49,6 +49,10 @@ func NewClient() (*Client, error) { return client, nil } +func (client *Client) Close() { + client.client.Close() +} + func (client *Client) Read(gcsFile string) (*File, error) { bucket, filename, err := split(gcsFile) if err != nil { -- cgit mrf-deployment