Merge pull request #3509 from jrasell/gh_3508

Fix panic on every run of the keyring command.
This commit is contained in:
Michael Schurter 2017-11-06 09:39:11 -08:00 committed by GitHub
commit 6b44f40c92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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)
@ -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