dereference pointer before printing in the describer

This commit is contained in:
Mike Danese
2015-09-21 13:55:19 -07:00
parent 653e695248
commit 2e8c87e309

View File

@@ -884,8 +884,8 @@ func describeJob(job *experimental.Job, events *api.EventList) (string, error) {
fmt.Fprintf(out, "Image(s):\t%s\n", "<no template>")
}
fmt.Fprintf(out, "Selector:\t%s\n", labels.FormatLabels(job.Spec.Selector))
fmt.Fprintf(out, "Parallelism:\t%d\n", job.Spec.Parallelism)
fmt.Fprintf(out, "Completions:\t%d\n", job.Spec.Completions)
fmt.Fprintf(out, "Parallelism:\t%d\n", *job.Spec.Parallelism)
fmt.Fprintf(out, "Completions:\t%d\n", *job.Spec.Completions)
fmt.Fprintf(out, "Labels:\t%s\n", labels.FormatLabels(job.Labels))
fmt.Fprintf(out, "Pods Statuses:\t%d Running / %d Succeeded / %d Failed\n", job.Status.Active, job.Status.Successful, job.Status.Unsuccessful)
if job.Spec.Template != nil {