From a1d29a93788d8683308781df8d7a30aafd0aaf74 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Thu, 21 Sep 2023 01:10:03 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20detect=20asset=20kind=20(#1818)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/mondoohq/cnquery/issues/1691 Signed-off-by: Dominik Richter --- providers/os/provider/detector.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/os/provider/detector.go b/providers/os/provider/detector.go index 54842ea49c..2d112caf6c 100644 --- a/providers/os/provider/detector.go +++ b/providers/os/provider/detector.go @@ -52,6 +52,9 @@ func (s *Service) detect(asset *inventory.Asset, conn shared.Connection) error { if !ok { return errors.New("failed to detect OS") } + if asset.Platform.Kind == "" { + asset.Platform.Kind = "baremetal" + } if asset.Connections[0].Runtime == "vagrant" { // detect overrides this asset.Platform.Kind = "virtualmachine"