mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Multiple matched objects now treated as an error condition.
This commit is contained in:
@@ -73,8 +73,8 @@ func (c *DeploymentPauseCommand) Run(args []string) int {
|
||||
}
|
||||
|
||||
if len(possible) != 0 {
|
||||
c.Ui.Output(fmt.Sprintf("Prefix matched multiple deployments\n\n%s", formatDeployments(possible, length)))
|
||||
return 0
|
||||
c.Ui.Error(fmt.Sprintf("Prefix matched multiple deployments\n\n%s", formatDeployments(possible, length)))
|
||||
return 1
|
||||
}
|
||||
|
||||
if _, _, err := client.Deployments().Pause(deploy.ID, true, nil); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user