Skip to content

Commit

Permalink
Fix 'vault auth' panic (#5473)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kalafut authored and jefferai committed Oct 8, 2018
1 parent a44cac3 commit f464e30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f464e30

Please sign in to comment.