Skip to content

Commit

Permalink
🐛 detect asset kind
Browse files Browse the repository at this point in the history
Fixes #1691

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Sep 21, 2023
1 parent 8a9c7ce commit 872ee5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/os/provider/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 872ee5a

Please sign in to comment.