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