Fix panic while running latest deployment command

This commit is contained in:
piotr.krolikowski
2017-09-06 20:26:22 +02:00
parent 3e34a230a0
commit 395161c442

View File

@@ -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)),