Skip to content

Commit

Permalink
export FillWithOval (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadayuki-matsuno authored and kotakanbe committed Aug 11, 2017
1 parent f738622 commit 95eb980
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 @@ -81,7 +81,7 @@ func fillCveInfo(r *models.ScanResult) error {
util.Log.Debugf("need to refresh")

util.Log.Infof("Fill CVE detailed information with OVAL")
if err := fillWithOval(r); err != nil {
if err := FillWithOval(r); err != nil {
return fmt.Errorf("Failed to fill OVAL information: %s", err)
}

Expand Down Expand Up @@ -140,7 +140,8 @@ func fillWithCveDB(r *models.ScanResult) error {
return nil
}

func fillWithOval(r *models.ScanResult) (err error) {
// FillWithOval fetches OVAL database, and then set to fields.
func FillWithOval(r *models.ScanResult) (err error) {
var ovalClient oval.Client
var ovalFamily string

Expand Down

0 comments on commit 95eb980

Please sign in to comment.