From b56764a0ec3cdf3b97dc29e0500eec3d73772ef4 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 15 Feb 2017 16:49:01 -0800 Subject: [PATCH] Fixed the nomad status command --- command/status.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/command/status.go b/command/status.go index 35a6e84f8..c91b773e6 100644 --- a/command/status.go +++ b/command/status.go @@ -144,12 +144,12 @@ func (c *StatusCommand) Run(args []string) int { // Format the job info basic := []string{ - fmt.Sprintf("ID|%s", job.ID), - fmt.Sprintf("Name|%s", job.Name), - fmt.Sprintf("Type|%s", job.Type), - fmt.Sprintf("Priority|%d", job.Priority), + fmt.Sprintf("ID|%s", *job.ID), + fmt.Sprintf("Name|%s", *job.Name), + fmt.Sprintf("Type|%s", *job.Type), + fmt.Sprintf("Priority|%d", *job.Priority), fmt.Sprintf("Datacenters|%s", strings.Join(job.Datacenters, ",")), - fmt.Sprintf("Status|%s", job.Status), + fmt.Sprintf("Status|%s", *job.Status), fmt.Sprintf("Periodic|%v", periodic), fmt.Sprintf("Parameterized|%v", parameterized), }