From a28999b4c6b1b8cac00c91231b6c72137ffea9fd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 8 Aug 2017 08:54:32 +0200 Subject: vendor: update all packages google.golang.org/api/compute/v0.beta again changed public interfaces which causes breakages in other build environments. Update everything to HEAD. --- pkg/gce/gce.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pkg/gce') diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go index b90200c3b..e8ad084e6 100644 --- a/pkg/gce/gce.go +++ b/pkg/gce/gce.go @@ -84,6 +84,9 @@ func NewContext() (*Context, error) { func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (string, error) { prefix := "https://www.googleapis.com/compute/v1/projects/" + ctx.ProjectID + sshkeyAttr := "syzkaller:" + sshkey + oneAttr := "1" + falseAttr := false instance := &compute.Instance{ Name: name, Description: "syzkaller worker", @@ -103,11 +106,11 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (str Items: []*compute.MetadataItems{ { Key: "ssh-keys", - Value: "syzkaller:" + sshkey, + Value: &sshkeyAttr, }, { Key: "serial-port-enable", - Value: "1", + Value: &oneAttr, }, }, }, @@ -117,7 +120,7 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string) (str }, }, Scheduling: &compute.Scheduling{ - AutomaticRestart: false, + AutomaticRestart: &falseAttr, Preemptible: true, OnHostMaintenance: "TERMINATE", }, -- cgit mrf-deployment