mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Fix: admin config set API for notifications (#9085)
Filter out targets set via env when validating incoming config change against configured notification targets Fixes #9066
This commit is contained in:
@@ -428,6 +428,10 @@ func lookupConfigs(s config.Config) {
|
||||
if err != nil {
|
||||
logger.LogIf(ctx, fmt.Errorf("Unable to initialize notification target(s): %w", err))
|
||||
}
|
||||
globalEnvTargetList, err = notify.GetNotificationTargets(newServerConfig(), GlobalServiceDoneCh, NewCustomHTTPTransport())
|
||||
if err != nil {
|
||||
logger.LogIf(ctx, fmt.Errorf("Unable to initialize notification target(s): %w", err))
|
||||
}
|
||||
}
|
||||
|
||||
// Help - return sub-system level help
|
||||
|
||||
Reference in New Issue
Block a user