SupportBundles: Replace feature toggle with enabled (#63241)

replace feature toggle with enabled
This commit is contained in:
Jo
2023-02-10 10:12:04 +01:00
committed by GitHub
parent ed626427de
commit c70571c536
8 changed files with 5 additions and 18 deletions
+1 -2
View File
@@ -254,8 +254,7 @@ func (hs *HTTPServer) getFrontendSettings(c *contextmodel.ReqContext) (*dtos.Fro
}
func isSupportBundlesEnabled(hs *HTTPServer) bool {
return hs.Cfg.SectionWithEnvOverrides("support_bundles").Key("enabled").MustBool(true) &&
hs.Features.IsEnabled(featuremgmt.FlagSupportBundles)
return hs.Cfg.SectionWithEnvOverrides("support_bundles").Key("enabled").MustBool(true)
}
func (hs *HTTPServer) getFSDataSources(c *contextmodel.ReqContext, availablePlugins AvailablePlugins) (map[string]plugins.DataSourceDTO, error) {