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 }