aboutsummaryrefslogtreecommitdiffstats
path: root/syz-gce
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-06-17 12:23:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-06-17 12:23:52 +0200
commit4cc7e0862826e6703642cfbf6440e3ef8fd8da0e (patch)
treeb3e303671a69de4036f3e5516f87483b154adc53 /syz-gce
parent13c5bfcc6ec165fe0cf988a3e92bbd8d8619411b (diff)
all: use osutil.IsExist instead of os.Stat
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{