Skip to content

Commit

Permalink
Merge pull request #3509 from jrasell/gh_3508
Browse files Browse the repository at this point in the history
Fix panic on every run of the keyring command.
  • Loading branch information
schmichael committed Nov 6, 2017
2 parents 0b3476a + 9f595ae commit ed142eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions command/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (c *KeyringCommand) AutocompleteArgs() complete.Predictor {
}

func (c *KeyringCommand) Run(args []string) int {
var installKey, useKey, removeKey, token string
var installKey, useKey, removeKey string
var listKeys bool

flags := c.Meta.FlagSet("keys", FlagSetClient)
Expand All @@ -78,7 +78,6 @@ func (c *KeyringCommand) Run(args []string) int {
flags.StringVar(&useKey, "use", "", "use key")
flags.StringVar(&removeKey, "remove", "", "remove key")
flags.BoolVar(&listKeys, "list", false, "list keys")
flags.StringVar(&token, "token", "", "acl token")

if err := flags.Parse(args); err != nil {
return 1
Expand Down

0 comments on commit ed142eb

Please sign in to comment.