Skip to content

Commit

Permalink
Skip showing deployment status where versions do not match
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Oct 29, 2020
1 parent 8983960 commit 2dd0ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func runStatus(ctx *cmdctx.CmdContext) error {
}
}

if app.DeploymentStatus != nil {
if app.DeploymentStatus != nil && app.DeploymentStatus.Version == app.Version && app.DeploymentStatus.Status != "cancelled" {

err = ctx.Frender(cmdctx.PresenterOption{
Presentable: &presenters.DeploymentStatus{Status: app.DeploymentStatus},
Vertical: true,
Expand Down

0 comments on commit 2dd0ec2

Please sign in to comment.