diff --git a/info/v1/machine.go b/info/v1/machine.go index 9ec46b8a..dc07ffa6 100644 --- a/info/v1/machine.go +++ b/info/v1/machine.go @@ -125,7 +125,7 @@ type InstanceType string const ( NoInstance InstanceType = "None" - UnknownInstance = "Uknown" + UnknownInstance = "Unknown" ) type MachineInfo struct { diff --git a/utils/cloudinfo/gce.go b/utils/cloudinfo/gce.go index 79569355..2ea27da2 100644 --- a/utils/cloudinfo/gce.go +++ b/utils/cloudinfo/gce.go @@ -26,7 +26,7 @@ func onGCE() bool { } func getGceInstanceType() info.InstanceType { - machineType, err := metadata.Get("machine-type") + machineType, err := metadata.Get("instance/machine-type") if err != nil { return info.UnknownInstance }