Skip to content

Commit

Permalink
fix: iterate over all fixable and manually fixable errata
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy authored and jdobes committed Sep 27, 2024
1 parent d32c50e commit 5767402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vmaas/vulnerabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type Package struct {
type packageErratum struct {
pkg string
erratum string
manual bool
}

func (r *Request) vulnerabilities(c *Cache, opts *options) (*Vulnerabilities, error) {
Expand Down Expand Up @@ -134,7 +135,7 @@ func evaluate(c *Cache, opts *options, request *Request) (*VulnerabilitiesCvesDe
tmpManualCves := map[string]VulnerabilityDetail{}
for pkg, upDetail := range updates.UpdateList {
for _, update := range upDetail.AvailableUpdates {
pe := packageErratum{pkg, update.Erratum}
pe := packageErratum{pkg, update.Erratum, update.manuallyFixable}
if seenPkgErratum[pe] {
continue
}
Expand Down

0 comments on commit 5767402

Please sign in to comment.