Commit f464e30f authored by Jim Kalafut's avatar Jim Kalafut Committed by Jeff Mitchell
Browse files

Fix 'vault auth' panic (#5473)

Running 'vault auth' with no parameters was panicking:

panic: assignment to entry in nil map
	github.com/hashicorp/vault/command/login.go:255 +0xdee

Now it will show help.
parent a44cac37
Showing with 4 additions and 0 deletions
+4 -0
......@@ -62,6 +62,10 @@ func (c *AuthCommand) Run(args []string) int {
// Deprecation
// TODO: remove in 0.9.0
if len(args) == 0 {
return cli.RunResultHelp
}
// Parse the args for our deprecations and defer to the proper areas.
for _, arg := range args {
switch {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment