diff --git a/providers/os/provider/detector.go b/providers/os/provider/detector.go index 19499c3721..2fe6845a84 100644 --- a/providers/os/provider/detector.go +++ b/providers/os/provider/detector.go @@ -76,19 +76,19 @@ func (s *Service) detect(asset *inventory.Asset, conn shared.Connection) error { log.Debug().Msg("run cloud platform detector") if id, name, related := aws.Detect(conn, asset.Platform); id != "" { asset.PlatformIds = append(asset.PlatformIds, id) - asset.Platform.Name = name + asset.Name = name asset.RelatedAssets = append(asset.RelatedAssets, relatedIds2assets(related)...) } if id, name, related := azure.Detect(conn, asset.Platform); id != "" { asset.PlatformIds = append(asset.PlatformIds, id) - asset.Platform.Name = name + asset.Name = name asset.RelatedAssets = append(asset.RelatedAssets, relatedIds2assets(related)...) } if id, name, related := gcp.Detect(conn, asset.Platform); id != "" { asset.PlatformIds = append(asset.PlatformIds, id) - asset.Platform.Name = name + asset.Name = name asset.RelatedAssets = append(asset.RelatedAssets, relatedIds2assets(related)...) } }