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

Commit

Permalink
Merge pull request #4120 from hashicorp/backport/maint/cli/complete-t…
Browse files Browse the repository at this point in the history
…ime-fix-pipelines/gratefully-flying-pig

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-waypoint authored Oct 26, 2022
2 parents 1e947cc + dc23664 commit cd8bdef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .changelog/4113.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:bug
cli: Only show "CompleteTime" on `waypoint pipeline list` if the job has a valid
complete time.
```
4 changes: 3 additions & 1 deletion internal/cli/pipeline_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit cd8bdef

Please sign in to comment.