Skip to content

Commit

Permalink
🐛 make sure no detectors are used for containers (#3314)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Feb 14, 2024
1 parent 25da67d commit ef07de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/os/provider/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *Service) detect(asset *inventory.Asset, conn shared.Connection) error {
}

var detectors map[string]struct{}
if asset.Platform.Kind != "container-image" {
if !slices.Contains([]string{"container-image", "container"}, asset.Platform.Kind) {
detectors = mapDetectors(asset.IdDetector)
}

Expand Down

0 comments on commit ef07de0

Please sign in to comment.