This commit is contained in:
Brendan Burns 2014-12-08 16:44:48 -08:00
parent 4845e524af
commit 33b3c1b8ce

View File

@ -131,10 +131,7 @@ func (rs *REST) ResourceLocation(ctx api.Context, id string) (string, error) {
if err != nil { if err != nil {
return "", err return "", err
} }
host := minion.Status.HostIP host := minion.Name
if host == "" {
host = minion.Name
}
// TODO: Minion webservers should be secure! // TODO: Minion webservers should be secure!
return "http://" + net.JoinHostPort(host, strconv.Itoa(ports.KubeletPort)), nil return "http://" + net.JoinHostPort(host, strconv.Itoa(ports.KubeletPort)), nil
} }