Skip to content

Commit

Permalink
[v1alpha2]fix bug int to string for index (kubeflow#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
yph152 authored and k8s-ci-robot committed May 7, 2018
1 parent ad62b62 commit d8d4167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller.v2/controller_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (tc *TFJobController) reconcilePods(
// TODO(gaocegege): Kill some pods.
} else if len(podSlice) == 0 {
loggerForReplica(tfjob, rt).Infof("need to create new pod: %s-%d", rt, index)
err := tc.createNewPod(tfjob, rt, string(index), spec)
err := tc.createNewPod(tfjob, rt, strconv.Itoa(index), spec)
if err != nil {
return err
}
Expand Down

0 comments on commit d8d4167

Please sign in to comment.