Multiple matched objects now treated as an error condition.

This commit is contained in:
Alex Dadgar
2017-07-20 17:31:07 -07:00
parent d104ccce6b
commit 3cd8d50bbc
17 changed files with 34 additions and 34 deletions

View File

@@ -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 {