Skip to content

Commit

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

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
  • Loading branch information
arlimus authored Sep 21, 2023
1 parent 8a9c7ce commit a1d29a9
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 a1d29a9

Please sign in to comment.