Skip to content

Commit

Permalink
Merge pull request #62 from jerr/log-cmd-for-completed-job
Browse files Browse the repository at this point in the history
fix: Accept completed job for log command
  • Loading branch information
fntlnz authored Feb 28, 2019
2 parents 7e2aab1 + d02beab commit cbb07ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (l *Logs) Run(jobID types.UID, namespace string, follow bool, timestamps bo
}

pod := &pl.Items[0]
if pod.Status.Phase == corev1.PodSucceeded || pod.Status.Phase == corev1.PodFailed {
if pod.Status.Phase == corev1.PodFailed {
return fmt.Errorf(podPhaseNotAcceptedError, pod.Status.Phase)
}

Expand Down

0 comments on commit cbb07ad

Please sign in to comment.