diff --git a/pkg/analyzer/detection/detection.go b/pkg/analyzer/detection/detection.go index b42a92204..d73ec756e 100644 --- a/pkg/analyzer/detection/detection.go +++ b/pkg/analyzer/detection/detection.go @@ -45,7 +45,7 @@ type DetectComponentOpts struct { // if CoreOS is required for DetectComponents, the namespace must start with `rhcos` func DetectComponents(name string, files analyzer.Files, parent *database.Layer, languageComponents []*component.Component, opts DetectComponentOpts) (*database.Namespace, []database.FeatureVersion, *database.RHELv2Components, []*component.Component, error) { namespace := DetectNamespace(name, files, parent, opts.UncertifiedRHEL) - if namespace != nil && opts.IsRHCOSRequired && !wellknownnamespaces.IsRHCOSNamespace(namespace.Name) { + if namespace != nil && opts.IsRHCOSRequired && !wellknownnamespaces.IsRHCOSNamespace(namespace.Name) && !wellknownnamespaces.IsRHELNamespace(namespace.Name) { logrus.WithFields(logrus.Fields{LogLayerName: name, "detected namespace": namespace.Name}).Warning("Unable to start node scanning for this namespace") return namespace, nil, nil, nil, ErrNodeScanningUnavailable }