Merge pull request #16489 from mqliang/deleteFmt

replace `fmt.Sptintf()` with naive string appending
pull/6/head
Alex Robinson 2015-10-30 09:25:39 -07:00
commit 21a75abfbd
1 changed files with 1 additions and 1 deletions

View File

@ -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.