mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix panic when creating a new Alertmanager returns an error (#79641)
Alerting: Fix panic after error creating new Alertmanager
This commit is contained in:
parent
864d91ed3e
commit
f7248efff5
@ -269,6 +269,7 @@ func (moa *MultiOrgAlertmanager) SyncAlertmanagersForOrgs(ctx context.Context, o
|
|||||||
am, err := moa.factory(ctx, orgID)
|
am, err := moa.factory(ctx, orgID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
moa.logger.Error("Unable to create Alertmanager for org", "org", orgID, "error", err)
|
moa.logger.Error("Unable to create Alertmanager for org", "org", orgID, "error", err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
moa.alertmanagers[orgID] = am
|
moa.alertmanagers[orgID] = am
|
||||||
alertmanager = am
|
alertmanager = am
|
||||||
|
Loading…
Reference in New Issue
Block a user