From 0a84ac1cdacd79610f62d32a08cb1c5da97baf61 Mon Sep 17 00:00:00 2001 From: Ananya Kumar Date: Mon, 6 Jul 2015 13:06:31 -0700 Subject: [PATCH] Fix incorrect use of metadata library, correct typo --- info/v1/machine.go | 2 +- utils/cloudinfo/gce.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }