From 395161c442e5280b4f3ab79a095378337fb94b62 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 739c7e46cb72..2cf045547eb1 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)),