Remove config from Meta; it's only used right now with the token helper.

This commit is contained in:
Jeff Mitchell
2016-04-01 16:02:18 -04:00
parent 48da40964c
commit 16c8f0b5ad
9 changed files with 29 additions and 46 deletions

View File

@@ -1,13 +1,10 @@
package command
import (
"github.com/hashicorp/vault/command/token"
"github.com/hashicorp/vault/meta"
)
import "github.com/hashicorp/vault/command/token"
// DefaultTokenHelper returns the token helper that is configured for Vault.
func DefaultTokenHelper(m *meta.Meta) (token.TokenHelper, error) {
config, err := m.Config()
func DefaultTokenHelper() (token.TokenHelper, error) {
config, err := LoadConfig("")
if err != nil {
return nil, err
}