Merge pull request #4999 from hashicorp/blalor-patch-1
Fix output of 'nomad deployment fail' with no arg
This commit is contained in:
commit
782a709b9f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue