Fix RHEL oval scan

This commit is contained in:
Kota Kanbe
2017-04-26 13:49:18 +09:00
committed by kota kanbe
parent 1a319859eb
commit 587c87b3a0
2 changed files with 6 additions and 2 deletions

View File

@@ -187,8 +187,11 @@ func fillCveInfoFromOvalDB(r models.ScanResult) (*models.ScanResult, error) {
case "ubuntu", "debian":
ovalClient = oval.NewDebian()
fmt.Println("hello")
case "redhat", "centos":
case "rhel", "centos":
ovalClient = oval.NewRedhat()
fmt.Println("good morning")
default:
return nil, fmt.Errorf("Oval %s is not implemented yet", r.Family)
}
result, err := ovalClient.FillCveInfoFromOvalDB(r)
if err != nil {