Skip to content

Commit

Permalink
replace fmt.Sptintf() with + operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mqliang committed Oct 29, 2015
1 parent 1b96e92 commit 5b03cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubelet/container/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5b03cfc

Please sign in to comment.