From 7a709b09c33fab58404416d73e7b9b3de314c8f7 Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Thu, 1 Oct 2015 17:41:14 -0700 Subject: [PATCH] Messages should be appended to "messages" slice. Network configuration error message while setting Kubelet status was being written to "reasons" slice. Write this message to "messages" slice instead. Also remove "reasons" slice entirely since it is not used anywhere. --- pkg/kubelet/kubelet.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kubelet/kubelet.go b/pkg/kubelet/kubelet.go index c9c31e5cb80..05ff52bdb09 100644 --- a/pkg/kubelet/kubelet.go +++ b/pkg/kubelet/kubelet.go @@ -2362,13 +2362,12 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error { LastHeartbeatTime: currentTime, } } else { - var reasons []string var messages []string if !containerRuntimeUp { messages = append(messages, "container runtime is down") } if !networkConfigured { - messages = append(reasons, "network not configured correctly") + messages = append(messages, "network not configured correctly") } newNodeReadyCondition = api.NodeCondition{ Type: api.NodeReady,