Skip to content

Commit

Permalink
export fill cve info (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadayuki-matsuno authored and kotakanbe committed Aug 23, 2017
1 parent 1875983 commit 21f13b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func FillCveInfos(rs []models.ScanResult, dir string) ([]models.ScanResult, erro
reportedAt := time.Now()
for _, r := range rs {
if c.Conf.RefreshCve || needToRefreshCve(r) {
if err := fillCveInfo(&r); err != nil {
if err := FillCveInfo(&r); err != nil {
return nil, err
}
r.Lang = c.Conf.Lang
Expand Down Expand Up @@ -86,7 +86,8 @@ func FillCveInfos(rs []models.ScanResult, dir string) ([]models.ScanResult, erro
return filtered, nil
}

func fillCveInfo(r *models.ScanResult) error {
// FillCveInfo fill scanResult with cve info.
func FillCveInfo(r *models.ScanResult) error {
util.Log.Debugf("need to refresh")

util.Log.Infof("Fill CVE detailed information with OVAL")
Expand Down

0 comments on commit 21f13b5

Please sign in to comment.