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

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