diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-08-08 08:54:32 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-08-08 10:54:24 +0200 |
| commit | a28999b4c6b1b8cac00c91231b6c72137ffea9fd (patch) | |
| tree | 848c7d5f0f628ead7674da4fe01f942ac200e298 /pkg/gce | |
| parent | ec649f0f94d572ae9d3e9ff72001b3552e45af3f (diff) | |
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.
Diffstat (limited to 'pkg/gce')
| -rw-r--r-- | pkg/gce/gce.go | 9 |
1 files changed, 6 insertions, 3 deletions
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", }, |
