aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-01-29 14:41:25 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-01-29 15:48:16 +0100
commit93d041852463d8be0079b95acc1d74c298a24271 (patch)
treece62836d855b2c7a3b10981d8b2497c0ebce2d02 /vm/gce
parentd0407197ba7cea0b5cdeb67012180fb5d87f0e19 (diff)
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.
Diffstat (limited to 'vm/gce')
-rw-r--r--vm/gce/gce.go2
1 files changed, 1 insertions, 1 deletions
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"