Kubelet tests broken on Macs with uppercase names

Hostname behavior across operating systems is inconsistent (Macs can
have uppercase host names, so can some other systems).  In general,
always strings.ToLower(os.Hostname()).
This commit is contained in:
Clayton Coleman
2015-03-08 23:44:32 -04:00
parent 53ec66caf4
commit 0f87337667
4 changed files with 7 additions and 1 deletions

View File

@@ -34,5 +34,5 @@ func GetHostname(hostnameOverride string) string {
}
hostname = fqdn
}
return strings.TrimSpace(string(hostname))
return strings.ToLower(strings.TrimSpace(string(hostname)))
}