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.
This commit is contained in:
parent
4c7c68a8b0
commit
fc38cd21c4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue