Merge pull request #801 from AnanyaKumar/cloud-provider-fix

Fix incorrect use of metadata library, correct typo
This commit is contained in:
Victor Marmol 2015-07-06 13:36:46 -07:00
commit d93f16c442
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
}