mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user