Chore: Small improvements to grafana-cli (#16670)

* Small improvements

* Better error handling
This commit is contained in:
Andrej Ocenas
2019-04-23 12:34:34 +02:00
committed by GitHub
parent c429934a66
commit e4f649e2c8
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -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) {