From 4f575830ec1c2b19bd6bc601af92a478eac6694f Mon Sep 17 00:00:00 2001 From: "piotr.krolikowski" Date: Wed, 6 Sep 2017 20:26:22 +0200 Subject: [PATCH] Fix panic while running latest deployment command --- command/deployment_status.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/deployment_status.go b/command/deployment_status.go index 739c7e46c..2cf045547 100644 --- a/command/deployment_status.go +++ b/command/deployment_status.go @@ -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)),