mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Multiple matched objects now treated as an error condition.
This commit is contained in:
@@ -124,8 +124,8 @@ func (c *NodeDrainCommand) Run(args []string) int {
|
||||
node.Status)
|
||||
}
|
||||
// Dump the output
|
||||
c.Ui.Output(fmt.Sprintf("Prefix matched multiple nodes\n\n%s", formatList(out)))
|
||||
return 0
|
||||
c.Ui.Error(fmt.Sprintf("Prefix matched multiple nodes\n\n%s", formatList(out)))
|
||||
return 1
|
||||
}
|
||||
|
||||
// Prefix lookup matched a single node
|
||||
|
||||
Reference in New Issue
Block a user