Support RHEL

This commit is contained in:
knqyf263
2017-04-24 23:28:46 +09:00
committed by kota kanbe
parent e5d32c8764
commit c989c31aeb
3 changed files with 119 additions and 8 deletions

View File

@@ -187,9 +187,8 @@ func fillCveInfoFromOvalDB(r models.ScanResult) (*models.ScanResult, error) {
case "ubuntu", "debian":
ovalClient = oval.NewDebian()
fmt.Println("hello")
case "redhat":
// TODO: RedHat
// ovalClient = oval.NewRedhat()
case "redhat", "centos":
ovalClient = oval.NewRedhat()
}
result, err := ovalClient.FillCveInfoFromOvalDB(r)
if err != nil {