Return evalID if `-detach` flag is passed to job revert (#13364)
* Return evalID if `-detach` flag is passed to job revert
This commit is contained in:
parent
a5045b3f0f
commit
4aa96d5bfc
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
cli: Fixed a bug where the evaluation ID was not returned from `job revert` when the `-detach` flag was used
|
||||
``
|
|
@ -164,7 +164,13 @@ func (c *JobRevertCommand) Run(args []string) int {
|
|||
|
||||
// Nothing to do
|
||||
evalCreated := resp.EvalID != ""
|
||||
if detach || !evalCreated {
|
||||
|
||||
if !evalCreated {
|
||||
return 0
|
||||
}
|
||||
|
||||
if detach {
|
||||
c.Ui.Output("Evaluation ID: " + resp.EvalID)
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue