From 93d041852463d8be0079b95acc1d74c298a24271 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 29 Jan 2021 14:41:25 +0100 Subject: vm/gce: change how GCE ssh magic is enabled We used to use empty ssh key as indication to use the GCE magic, but this conflicts with using no ssh key at all (empty password). Use string "GCE" instead to enable GCE magic. --- vm/gce/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index c4cd9f184..14b59c522 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -163,7 +163,7 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { }() sshKey := pool.env.SSHKey sshUser := pool.env.SSHUser - if sshKey == "" { + if sshKey == "GCE" { // Assuming image supports GCE ssh fanciness. sshKey = gceKey sshUser = "syzkaller" -- cgit mrf-deployment