Chore: Small improvements to grafana-cli (#16670)
* Small improvements * Better error handling
This commit is contained in:
@@ -770,7 +770,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
|
||||
|
||||
pluginsSection := iniFile.Section("plugins")
|
||||
cfg.PluginsEnableAlpha = pluginsSection.Key("enable_alpha").MustBool(false)
|
||||
cfg.PluginsAppsSkipVerifyTLS = iniFile.Section("plugins").Key("app_tls_skip_verify_insecure").MustBool(false)
|
||||
cfg.PluginsAppsSkipVerifyTLS = pluginsSection.Key("app_tls_skip_verify_insecure").MustBool(false)
|
||||
|
||||
// check old location for this option
|
||||
if panelsSection.Key("enable_alpha").MustBool(false) {
|
||||
|
||||
Reference in New Issue
Block a user