mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Fix panic while running latest deployment command
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user