From f68ed41453301932dfca4b36b178ea02487f653a Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Wed, 22 Jul 2020 16:43:03 -0400 Subject: [PATCH] mrd: only output evalID if found If the multi-region job is a periodic/dispatch job, stopping them returns an empty EvalID. This removes some unexpected empty lines. --- command/job_stop.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/job_stop.go b/command/job_stop.go index 0c0a8f106..be2f88efa 100644 --- a/command/job_stop.go +++ b/command/job_stop.go @@ -195,7 +195,9 @@ func (c *JobStopCommand) Run(args []string) int { c.Ui.Error(fmt.Sprintf("Error deregistering job in %q: %s", region.Name, err)) return 1 } - c.Ui.Output(evalID) + if evalID != "" { + c.Ui.Output(evalID) + } } return 0 }