mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: replace a duplicated configuration key (#50350)
This PR renames the configuration key enabled to capture. This is needed as we already have a configuration key with the name enabled. Fixes #50328 Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
28a47b56d2
commit
fd664e4beb
@@ -55,7 +55,7 @@ func NewScreenshotImageService(screenshots screenshot.ScreenshotService, store s
|
||||
// from the configuration.
|
||||
func NewScreenshotImageServiceFromCfg(cfg *setting.Cfg, metrics prometheus.Registerer,
|
||||
db *store.DBstore, ds dashboards.DashboardService, rs rendering.Service) (ImageService, error) {
|
||||
if !cfg.UnifiedAlerting.Screenshots.Enabled {
|
||||
if !cfg.UnifiedAlerting.Screenshots.Capture {
|
||||
return &ScreenshotImageService{
|
||||
screenshots: &screenshot.ScreenshotUnavailableService{},
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user