mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Lifts login handlers map to a variable (#22624)
This commit is contained in:
@@ -218,11 +218,7 @@ var (
|
|||||||
"kubernetes": ksr.NewServiceRegistration,
|
"kubernetes": ksr.NewServiceRegistration,
|
||||||
}
|
}
|
||||||
|
|
||||||
initCommandsEnt = func(ui, serverCmdUi cli.Ui, runOpts *RunOptions, commands map[string]cli.CommandFactory) {}
|
loginHandlers = map[string]LoginHandler{
|
||||||
)
|
|
||||||
|
|
||||||
func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) map[string]cli.CommandFactory {
|
|
||||||
loginHandlers := map[string]LoginHandler{
|
|
||||||
"alicloud": &credAliCloud.CLIHandler{},
|
"alicloud": &credAliCloud.CLIHandler{},
|
||||||
"aws": &credAws.CLIHandler{},
|
"aws": &credAws.CLIHandler{},
|
||||||
"centrify": &credCentrify.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 {
|
getBaseCommand := func() *BaseCommand {
|
||||||
return &BaseCommand{
|
return &BaseCommand{
|
||||||
UI: ui,
|
UI: ui,
|
||||||
|
|||||||
Reference in New Issue
Block a user