From ef00766e31454945aa60330560fd6a07d9bb7304 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 16 Feb 2017 14:29:34 -0800 Subject: [PATCH] Fix CLI handling of parameterized/periodic jobs --- command/status.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/status.go b/command/status.go index 55569aba3..bd8569f50 100644 --- a/command/status.go +++ b/command/status.go @@ -191,7 +191,7 @@ func (c *StatusCommand) outputPeriodicInfo(client *api.Client, job *api.Job) err } // Generate the prefix that matches launched jobs from the periodic job. - prefix := fmt.Sprintf("%s%s", job.ID, structs.PeriodicLaunchSuffix) + prefix := fmt.Sprintf("%s%s", *job.ID, structs.PeriodicLaunchSuffix) children, _, err := client.Jobs().PrefixList(prefix) if err != nil { return fmt.Errorf("Error querying job: %s", err) @@ -237,8 +237,8 @@ func (c *StatusCommand) outputParameterizedInfo(client *api.Client, job *api.Job return err } - // Generate the prefix that matches launched jobs from the periodic job. - prefix := fmt.Sprintf("%s%s", job.ID, structs.DispatchLaunchSuffix) + // Generate the prefix that matches launched jobs from the parameterized job. + prefix := fmt.Sprintf("%s%s", *job.ID, structs.DispatchLaunchSuffix) children, _, err := client.Jobs().PrefixList(prefix) if err != nil { return fmt.Errorf("Error querying job: %s", err)