Skip to content

Commit

Permalink
Merge pull request #129 from qowoz/xen
Browse files Browse the repository at this point in the history
fix xen parsing
  • Loading branch information
brianmcgee authored Oct 22, 2024
2 parents dc1bb44 + 31e05dd commit 39e20ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/virt/detect_vm_xen.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func detectXenDom0() (bool, error) {
// read failure
return false, err
} else if len(b) > 0 {
features, err := strconv.ParseUint(string(b), 16, 64)
features, err := strconv.ParseUint(strings.TrimSpace(string(b)), 16, 64)
if err != nil {
return false, fmt.Errorf("failed to read %s: %w", featuresPath, err)
}
Expand Down

0 comments on commit 39e20ab

Please sign in to comment.