mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:32:24 +08:00
Alerting: Disable unified alerting by default in Enterprise Grafana (#42476)
* fallback to enable false if Enterprise is true * anyBoolean
This commit is contained in:
@ -87,6 +87,14 @@ func (cfg *Cfg) readUnifiedAlertingEnabledSetting(section *ini.Section) (*bool,
|
||||
AlertingEnabled = &legacyAlerting
|
||||
return &enabled, nil
|
||||
}
|
||||
if IsEnterprise {
|
||||
enabled = false
|
||||
if AlertingEnabled == nil {
|
||||
legacyEnabled := true
|
||||
AlertingEnabled = &legacyEnabled
|
||||
}
|
||||
return &enabled, nil
|
||||
}
|
||||
// next, check whether legacy flag is set
|
||||
if AlertingEnabled != nil && !*AlertingEnabled {
|
||||
enabled = true
|
||||
|
Reference in New Issue
Block a user