Fix incorrect use of metadata library, correct typo

This commit is contained in:
Ananya Kumar 2015-07-06 13:06:31 -07:00
parent ec240b60c5
commit 0a84ac1cda
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ type InstanceType string
const (
NoInstance InstanceType = "None"
UnknownInstance = "Uknown"
UnknownInstance = "Unknown"
)
type MachineInfo struct {

View File

@ -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
}