diff --git a/.changelog/4113.txt b/.changelog/4113.txt new file mode 100644 index 00000000000..a7d32fc4fcd --- /dev/null +++ b/.changelog/4113.txt @@ -0,0 +1,4 @@ +```release-note:bug +cli: Only show "CompleteTime" on `waypoint pipeline list` if the job has a valid +complete time. +``` diff --git a/internal/cli/pipeline_list.go b/internal/cli/pipeline_list.go index e4c6fe11329..953d1b1fe1e 100644 --- a/internal/cli/pipeline_list.go +++ b/internal/cli/pipeline_list.go @@ -131,7 +131,9 @@ func (c *PipelineListCommand) Run(args []string) int { return 1 } - lastRunEnd = humanize.Time(j.CompleteTime.AsTime()) + if j.CompleteTime != nil { + lastRunEnd = humanize.Time(j.CompleteTime.AsTime()) + } state = strings.ToLower(lastRun.State.String()) }