Skip to content

Commit

Permalink
Merge pull request #54 from Acmarr/main
Browse files Browse the repository at this point in the history
NVSHAS-9044 fix issue with "is installed" and "is enabled"
  • Loading branch information
becitsthere committed Jun 5, 2024
2 parents 660f549 + fc0106d commit 0bfe206
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions updater/fetchers/rhel2/rhel.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,8 @@ func toFeatureVersions(ros int, rhsa, cvename string, criteria criteria) []commo
featureVersion.Feature.Name = strings.TrimSpace(c.Comment[:a])
}
featureVersion.Version = common.MinVersion
} else {
if a := strings.Index(c.Comment, " is installed"); a > 0 {
featureVersion.Feature.Name = strings.TrimSpace(c.Comment[:a])
}
} else if strings.Contains(c.Comment, " is installed") {
featureVersion.Feature.Name = strings.TrimSpace(c.Comment[:strings.Index(c.Comment, " is installed")])
featureVersion.Version = common.MaxVersion
}
}
Expand Down

0 comments on commit 0bfe206

Please sign in to comment.