mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
Check for absence of checksum field and attributes. (#6298)
Fixes #6295
This commit is contained in:
@@ -490,7 +490,9 @@ func loadConfig(objAPI ObjectLayer) error {
|
||||
// * Handle the configuration in this function to create/add into TargetList.
|
||||
func getNotificationTargets(config *serverConfig) *event.TargetList {
|
||||
targetList := event.NewTargetList()
|
||||
|
||||
if config == nil {
|
||||
return targetList
|
||||
}
|
||||
for id, args := range config.Notify.AMQP {
|
||||
if args.Enable {
|
||||
newTarget, err := target.NewAMQPTarget(id, args)
|
||||
|
||||
Reference in New Issue
Block a user