Skip to content

Commit

Permalink
don't remove apiclientmeta parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed May 6, 2022
1 parent b057e7f commit b179ad4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/credential/userpass/cmd/userpass/main.go
Expand Up @@ -4,11 +4,15 @@ import (
"os"

hclog "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/builtin/credential/userpass"
"github.com/hashicorp/vault/sdk/plugin"
)

func main() {
apiClientMeta := &api.PluginAPIClientMeta{}
flags := apiClientMeta.FlagSet()
flags.Parse(os.Args[1:])

if err := plugin.ServeMultiplex(&plugin.ServeOpts{
BackendFactoryFunc: userpass.Factory,
Expand Down

0 comments on commit b179ad4

Please sign in to comment.