Fix oval-db existence check on reporting

This commit is contained in:
kota kanbe
2017-08-09 10:32:31 +09:00
parent b14406e329
commit 774c78add0
2 changed files with 11 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ func fillWithOval(r *models.ScanResult) (err error) {
}
if !ok {
major := strings.Split(r.Release, ".")[0]
util.Log.Warnf("OVAL entries of %s %s are not found. It's recommended to use OVAL to improve scanning accuracy. To fetch OVAL, see https://github.com/kotakanbe/goval-dictionary#usage , Then report with --ovaldb-path or --ovaldb-url flag", ovalFamily, major)
util.Log.Warnf("OVAL entries of %s %s are not found. It's recommended to use OVAL to improve scanning accuracy. For details, see https://github.com/kotakanbe/goval-dictionary#usage , Then report with --ovaldb-path or --ovaldb-url flag", ovalFamily, major)
return nil
}