Skip to content

Commit

Permalink
fix: skip asset detection if already present
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 13, 2024
1 parent 78d101e commit 68b368d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions providers/os/connection/device/device_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ func NewDeviceConnection(connId uint32, conf *inventory.Config, asset *inventory
}
res.MountedDirs = append(res.MountedDirs, block.MountPoint)

if asset.Platform != nil {
log.Debug().Msg("device connection> asset already detected, skipping")
continue
}

if fsConn, err := tryDetectAsset(connId, block, conf, asset); err != nil {
log.Error().Err(err).Msg("partition did not return an asset, continuing")
} else {
Expand Down

0 comments on commit 68b368d

Please sign in to comment.