From 33b3c1b8ce9b21e522a6c467c4fe8ff06563b4ff Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Mon, 8 Dec 2014 16:44:48 -0800 Subject: [PATCH] Fix e2e. --- pkg/registry/minion/rest.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/registry/minion/rest.go b/pkg/registry/minion/rest.go index 48fb4bdbc01..d9c887a1e5f 100644 --- a/pkg/registry/minion/rest.go +++ b/pkg/registry/minion/rest.go @@ -131,10 +131,7 @@ func (rs *REST) ResourceLocation(ctx api.Context, id string) (string, error) { if err != nil { return "", err } - host := minion.Status.HostIP - if host == "" { - host = minion.Name - } + host := minion.Name // TODO: Minion webservers should be secure! return "http://" + net.JoinHostPort(host, strconv.Itoa(ports.KubeletPort)), nil }