Merge pull request #4999 from hashicorp/blalor-patch-1

Fix output of 'nomad deployment fail' with no arg
This commit is contained in:
Preetha 2018-12-13 12:30:43 -06:00 committed by GitHub
commit 782a709b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -79,10 +79,10 @@ func (c *DeploymentFailCommand) Run(args []string) int {
return 1
}
// Check that we got no arguments
// Check that we got one argument
args = flags.Args()
if l := len(args); l != 1 {
c.Ui.Error("This command takes no arguments")
c.Ui.Error("This command takes one argument: <deployment id>")
c.Ui.Error(commandErrorText(c))
return 1
}