mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Showing the status of the first job when it's prefixed matched and the user input matched exact
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user