Add Ubuntu Support

This commit is contained in:
Kota Kanbe
2017-04-26 19:30:38 +09:00
committed by kota kanbe
parent c9ab956f8f
commit 037e12b0bd
3 changed files with 15 additions and 9 deletions

View File

@@ -186,11 +186,10 @@ func fillCveInfoFromOvalDB(r *models.ScanResult) (*models.ScanResult, error) {
switch r.Family {
case "ubuntu", "debian":
ovalClient = oval.NewDebian()
fmt.Println("hello")
case "rhel", "centos":
ovalClient = oval.NewRedhat()
fmt.Println("good morning")
case "amazon":
case "amazon", "oraclelinux", "Raspbian":
//TODO implement OracleLinux
return r, nil
default:
return nil, fmt.Errorf("Oval %s is not implemented yet", r.Family)