mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Lifts login handlers map to a variable (#22624)
This commit is contained in:
parent
7cd0dd97d2
commit
d24adad7dd
1 changed files with 5 additions and 5 deletions
|
|
@ -218,11 +218,7 @@ var (
|
|||
"kubernetes": ksr.NewServiceRegistration,
|
||||
}
|
||||
|
||||
initCommandsEnt = func(ui, serverCmdUi cli.Ui, runOpts *RunOptions, commands map[string]cli.CommandFactory) {}
|
||||
)
|
||||
|
||||
func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) map[string]cli.CommandFactory {
|
||||
loginHandlers := map[string]LoginHandler{
|
||||
loginHandlers = map[string]LoginHandler{
|
||||
"alicloud": &credAliCloud.CLIHandler{},
|
||||
"aws": &credAws.CLIHandler{},
|
||||
"centrify": &credCentrify.CLIHandler{},
|
||||
|
|
@ -245,6 +241,10 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) map[string]cli.Co
|
|||
},
|
||||
}
|
||||
|
||||
initCommandsEnt = func(ui, serverCmdUi cli.Ui, runOpts *RunOptions, commands map[string]cli.CommandFactory) {}
|
||||
)
|
||||
|
||||
func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) map[string]cli.CommandFactory {
|
||||
getBaseCommand := func() *BaseCommand {
|
||||
return &BaseCommand{
|
||||
UI: ui,
|
||||
|
|
|
|||
Loading…
Reference in a new issue