mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
fix arg check
This commit is contained in:
@@ -52,7 +52,7 @@ func (c *AllocStatusCommand) Run(args []string) int {
|
||||
|
||||
// Check that we got exactly one allocation ID
|
||||
args = flags.Args()
|
||||
if len(args) == 0 {
|
||||
if len(args) != 1 {
|
||||
c.Ui.Error(c.Help())
|
||||
return 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user