fix virtualization detection (#15)
This commit is contained in:
1 parent
f57634fca0
commit
25ee86800c
1 file changed
+5
-1
@@ -54,7 +54,11 @@ func GetHost(agentConfig *model.AgentConfig) *model.Host {
|
||||
ret.Platform = hi.Platform
|
||||
ret.PlatformVersion = hi.PlatformVersion
|
||||
ret.Arch = hi.KernelArch
|
||||
ret.Virtualization = hi.VirtualizationSystem
|
||||
if cpuType == "Physical" {
|
||||
ret.Virtualization = ""
|
||||
} else {
|
||||
ret.Virtualization = hi.VirtualizationSystem
|
||||
}
|
||||
ret.BootTime = hi.BootTime
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user