Skip to content

Commit

Permalink
Merge pull request #3166 from pkrolikowski/fix-panic-deployment-latest
Browse files Browse the repository at this point in the history
[cli] Fix panic while running latest deployment command witch -latest flag
  • Loading branch information
dadgar committed Sep 6, 2017
2 parents 3e34a23 + 395161c commit bb578ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/deployment_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func getDeployment(client *api.Deployments, dID string) (match *api.Deployment,
}

func formatDeployment(d *api.Deployment, uuidLength int) string {
if d == nil {
return "No deployment found"
}
// Format the high-level elements
high := []string{
fmt.Sprintf("ID|%s", limit(d.ID, uuidLength)),
Expand Down

0 comments on commit bb578ab

Please sign in to comment.