Merge pull request #3509 from jrasell/gh_3508
Fix panic on every run of the keyring command.
This commit is contained in:
commit
6b44f40c92
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue