Skip to content

Commit

Permalink
remove warning when content sets aren't detected (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
RTann authored Mar 20, 2023
1 parent 581c726 commit aac0d2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/analyzer/detection/detection.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,10 @@ func detectAndAnnotateCertifiedRHELComponents(name string, files analyzer.Files,
contentSets, err = getHardcodedRHCOSContentSets(files)
if err != nil {
logrus.WithError(err).Errorf("failed to get RHCOS content sets for %v: %v", namespace, err)
logrus.Warning("Continuing analysis for RHCOS without content sets...")
}
}
// Leave a warning for certified scans without content sets.
if len(contentSets) == 0 {
logrus.Warningf("empty content sets for RHEL certified namespace %v", namespace)
}

rhelfeatures := &database.RHELv2Components{
Dist: namespace.Name,
Packages: packages,
Expand Down

0 comments on commit aac0d2f

Please sign in to comment.