Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit cd8bdef

Browse files
Merge pull request #4120 from hashicorp/backport/maint/cli/complete-time-fix-pipelines/gratefully-flying-pig
This pull request was automerged via backport-assistant
2 parents 1e947cc + dc23664 commit cd8bdef

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changelog/4113.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:bug
2+
cli: Only show "CompleteTime" on `waypoint pipeline list` if the job has a valid
3+
complete time.
4+
```

internal/cli/pipeline_list.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ func (c *PipelineListCommand) Run(args []string) int {
131131
return 1
132132
}
133133

134-
lastRunEnd = humanize.Time(j.CompleteTime.AsTime())
134+
if j.CompleteTime != nil {
135+
lastRunEnd = humanize.Time(j.CompleteTime.AsTime())
136+
}
135137
state = strings.ToLower(lastRun.State.String())
136138
}
137139

0 commit comments

Comments
 (0)