mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(settings): remove nil pointer exception
This commit is contained in:
parent
61bb9cbc13
commit
5dea0fda51
@ -359,12 +359,12 @@ func loadConfiguration(args *CommandLineArgs) {
|
|||||||
configFiles = append(configFiles, defaultConfigFile)
|
configFiles = append(configFiles, defaultConfigFile)
|
||||||
|
|
||||||
Cfg, err = ini.Load(defaultConfigFile)
|
Cfg, err = ini.Load(defaultConfigFile)
|
||||||
Cfg.BlockMode = false
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(3, "Failed to parse defaults.ini, %v", err)
|
log.Fatal(3, "Failed to parse defaults.ini, %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Cfg.BlockMode = false
|
||||||
|
|
||||||
// command line props
|
// command line props
|
||||||
commandLineProps := getCommandLineProperties(args.Args)
|
commandLineProps := getCommandLineProperties(args.Args)
|
||||||
// load default overrides
|
// load default overrides
|
||||||
|
Loading…
Reference in New Issue
Block a user