add hypervisor detection

This commit is contained in:
Pete Fraedrich
2020-04-24 13:54:41 -04:00
parent 59c212fd72
commit 13ae317346
+1 -1
View File
@@ -52,7 +52,7 @@ func BIOSInfo() (*BIOS, error) {
}
for h, s := range hypervisors {
for _, i := range s {
re, err := regexp.Compile(`(?igm).*` + i + `.*`)
re, err := regexp.Compile(`(?igm)` + i)
if err != nil {
return b, nil
}