From d7410285967a5bfbedad87224ff14de192b474ed Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 6 Oct 2023 00:00:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20platform=20name=20detectio?= =?UTF-8?q?n=20for=20cloud=20instances=20(#2104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/os/provider/detector.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)...) } }