mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -05:00
Fix console logger crash in gateway mode (#8525)
This PR also fixes config migration only for credentials and region which are valid and set. Also fix implicit `state="on"` behavior
This commit is contained in:
committed by
kannappanr
parent
1dd38750f7
commit
32c200fe12
@@ -145,6 +145,9 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
// Set when gateway is enabled
|
||||
globalIsGateway = true
|
||||
|
||||
// Initialize globalConsoleSys system
|
||||
globalConsoleSys = NewConsoleLogger(context.Background(), globalEndpoints)
|
||||
|
||||
enableConfigOps := gatewayName == "nas"
|
||||
|
||||
// TODO: We need to move this code with globalConfigSys.Init()
|
||||
@@ -171,8 +174,6 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
registerSTSRouter(router)
|
||||
}
|
||||
|
||||
// Initialize globalConsoleSys system
|
||||
globalConsoleSys = NewConsoleLogger(context.Background(), globalEndpoints)
|
||||
enableIAMOps := globalEtcdClient != nil
|
||||
|
||||
// Enable IAM admin APIs if etcd is enabled, if not just enable basic
|
||||
|
||||
Reference in New Issue
Block a user