mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Multiple matched objects now treated as an error condition.
This commit is contained in:
@@ -137,8 +137,8 @@ func (c *EvalStatusCommand) Run(args []string) int {
|
||||
failures,
|
||||
)
|
||||
}
|
||||
c.Ui.Output(fmt.Sprintf("Prefix matched multiple evaluations\n\n%s", formatList(out)))
|
||||
return 0
|
||||
c.Ui.Error(fmt.Sprintf("Prefix matched multiple evaluations\n\n%s", formatList(out)))
|
||||
return 1
|
||||
}
|
||||
|
||||
// If we are in monitor mode, monitor and exit
|
||||
|
||||
Reference in New Issue
Block a user