aboutsummaryrefslogtreecommitdiffstats
path: root/syz-gce
diff options
context:
space:
mode:
Diffstat (limited to 'syz-gce')
-rw-r--r--syz-gce/syz-gce.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/syz-gce/syz-gce.go b/syz-gce/syz-gce.go
index 59a83f9ae..2d4c58dbd 100644
--- a/syz-gce/syz-gce.go
+++ b/syz-gce/syz-gce.go
@@ -41,6 +41,7 @@ import (
"github.com/google/syzkaller/pkg/git"
"github.com/google/syzkaller/pkg/kernel"
. "github.com/google/syzkaller/pkg/log"
+ "github.com/google/syzkaller/pkg/osutil"
"github.com/google/syzkaller/syz-manager/config"
)
@@ -462,7 +463,7 @@ func writeManagerConfig(cfg *Config, httpPort int, file string) error {
tag = tag[:len(tag)-1]
}
sshKey := ""
- if _, err := os.Stat("image/key"); err == nil {
+ if osutil.IsExist("image/key") {
sshKey = "image/key"
}
managerCfg := &config.Config{