Check for absence of checksum field and attributes. (#6298)

Fixes #6295
This commit is contained in:
kannappanr
2018-08-20 16:58:47 -07:00
committed by Dee Koder
parent 8b2801bd46
commit 2d84b02bc4
3 changed files with 33 additions and 6 deletions
+3 -1
View File
@@ -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)