From 5bcf2dd1f0df0586708e731ca21ce7a72e2d7dd0 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 6 Jul 2017 20:06:50 -0700 Subject: [PATCH] deployment status indicates whether canaries were promoted --- command/deployment_status.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/deployment_status.go b/command/deployment_status.go index e75508a38..c38ba4b57 100644 --- a/command/deployment_status.go +++ b/command/deployment_status.go @@ -175,7 +175,7 @@ func formatDeployment(d *api.Deployment, uuidLength int) string { } rowString += "Desired|" if canaries { - rowString += "Canaries|" + rowString += "Canaries|Promoted|" } rowString += "Placed|Healthy|Unhealthy" @@ -190,6 +190,7 @@ func formatDeployment(d *api.Deployment, uuidLength int) string { row += fmt.Sprintf("%d|", state.DesiredTotal) if canaries { row += fmt.Sprintf("%d|", state.DesiredCanaries) + row += fmt.Sprintf("%v|", state.Promoted) } row += fmt.Sprintf("%d|%d|%d", state.PlacedAllocs, state.HealthyAllocs, state.UnhealthyAllocs) rows[i] = row