Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkg/snclient/check_drivesize_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,16 @@ func (l *CheckDrivesize) setDeviceInfo(drive map[string]string) {
if drive["drive_or_name"] == "" {
drive["drive_or_name"] = driveOrName
}

// volumes without an assigned drive letter have empty drive["drive"]
// use the volume name or id as fallback
if drive["drive"] == "" {
if drive["name"] != "" {
drive["drive"] = drive["name"]
} else {
drive["drive"] = drive["drive_or_id"]
}
}
}

// gopsutil disk.Partition had an issue with Bitlocker, but a fix was upstreamed
Expand Down
Loading