From 5b03cfc92b092e1eb9d8f75c9fee2eb2a836cd81 Mon Sep 17 00:00:00 2001 From: mqliang Date: Thu, 29 Oct 2015 16:22:33 +0800 Subject: [PATCH] replace fmt.Sptintf() with + operator --- pkg/kubelet/container/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/container/runtime.go b/pkg/kubelet/container/runtime.go index 10ebfc326a..2e8795134b 100644 --- a/pkg/kubelet/container/runtime.go +++ b/pkg/kubelet/container/runtime.go @@ -358,7 +358,7 @@ func (p *Pod) IsEmpty() bool { func GetPodFullName(pod *api.Pod) string { // Use underscore as the delimiter because it is not allowed in pod name // (DNS subdomain format), while allowed in the container name format. - return fmt.Sprintf("%s_%s", pod.Name, pod.Namespace) + return pod.Name + "_" + pod.Namespace } // Build the pod full name from pod name and namespace.