1
0
mirror of https://github.com/rancher/os.git synced 2025-08-18 14:58:32 +00:00
os/vendor/github.com/sigma/vmw-guestinfo/vmcheck/vmcheck.go
Sven Dowideit be2c4044ce cloudinit tests pass :)
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-02-28 13:58:34 +10:00

11 lines
210 B
Go

package vmcheck
import (
"github.com/sigma/bdoor"
)
// IsVirtualWorld returns whether the code is running in a VMware virtual machine or no
func IsVirtualWorld() bool {
return bdoor.HypervisorPortCheck()
}