Change CveContents data type to map
This commit is contained in:
		@@ -70,7 +70,7 @@ func (o Debian) fillOvalInfo(r *models.ScanResult, definition *ovalmodels.Defini
 | 
			
		||||
			CveID:       definition.Debian.CveID,
 | 
			
		||||
			Confidence:  models.OvalMatch,
 | 
			
		||||
			Packages:    getPackageInfoList(r, definition),
 | 
			
		||||
			CveContents: []models.CveContent{ovalContent},
 | 
			
		||||
			CveContents: models.NewCveContents(ovalContent),
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		if _, ok := vinfo.CveContents.Get(models.NewCveContentType(r.Family)); !ok {
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ func (o Redhat) fillOvalInfo(r *models.ScanResult, definition *ovalmodels.Defini
 | 
			
		||||
				CveID:       cve.CveID,
 | 
			
		||||
				Confidence:  models.OvalMatch,
 | 
			
		||||
				Packages:    getPackageInfoList(r, definition),
 | 
			
		||||
				CveContents: []models.CveContent{ovalContent},
 | 
			
		||||
				CveContents: models.NewCveContents(ovalContent),
 | 
			
		||||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
			if _, ok := vinfo.CveContents.Get(models.RedHat); !ok {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user