Skip to content

Commit

Permalink
Remove VulnerabilityStub as extended field of Vulnerability (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi authored Sep 4, 2024
1 parent f2c05ca commit 78d2314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepfence_server/model/scans.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (Vulnerability) NodeType() string {
}

func (Vulnerability) ExtendedField() string {
return "rule_id"
return ""
}

func (v Vulnerability) GetCategory() string {
Expand Down
2 changes: 1 addition & 1 deletion deepfence_worker/ingesters/vulnerabilites.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func CommitFuncVulnerabilities(ctx context.Context, ns string, data []ingestersU
}
}
if found == -1 {
log.Warn().Msgf("Ill-formed vuln rule: %v", data["cve_id"])
log.Debug().Msgf("Ill-formed vuln rule: %v", data["cve_id"])
found = 0
}
data["cve_type"] = cve_types[found]
Expand Down

0 comments on commit 78d2314

Please sign in to comment.