Skip to content

Commit

Permalink
Fix panic in ServerInfoHandler when (minio#8915)
Browse files Browse the repository at this point in the history
Co-authored-by: Harshavardhana <[email protected]>
  • Loading branch information
poornas and harshavardhana authored Feb 1, 2020
1 parent c9116e6 commit 5d838ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/admin-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1470,10 +1470,13 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque
}

func fetchLambdaInfo(cfg config.Config) []map[string][]madmin.TargetIDStatus {
lambdaMap := make(map[string][]madmin.TargetIDStatus)

// Fetch the targets
targetList, _ := notify.RegisterNotificationTargets(cfg, GlobalServiceDoneCh, NewCustomHTTPTransport(), nil, true)
targetList, err := notify.RegisterNotificationTargets(cfg, GlobalServiceDoneCh, NewCustomHTTPTransport(), nil, true)
if err != nil {
return nil
}
lambdaMap := make(map[string][]madmin.TargetIDStatus)

for targetID, target := range targetList.TargetMap() {
targetIDStatus := make(map[string]madmin.Status)
Expand Down

0 comments on commit 5d838ed

Please sign in to comment.