From b31b6b5d6e092ec6ca11f1a3e1e07b2dfd32eb43 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 30 Mar 2016 22:17:41 -0700 Subject: [PATCH] Showing the status of the first job when it's prefixed matched and the user input matched exact --- command/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/status.go b/command/status.go index d7bcdde4a..83ef361c7 100644 --- a/command/status.go +++ b/command/status.go @@ -114,7 +114,7 @@ func (c *StatusCommand) Run(args []string) int { c.Ui.Error(fmt.Sprintf("No job(s) with prefix or id %q found", jobID)) return 1 } - if len(jobs) > 1 { + if len(jobs) > 1 && strings.TrimSpace(jobID) != jobs[0].ID { out := make([]string, len(jobs)+1) out[0] = "ID|Type|Priority|Status" for i, job := range jobs {