mirror of https://github.com/jetkvm/kvm.git
fix(config): should return defaultConfig when config file doesnt exist
This commit is contained in:
parent
99b3017344
commit
16efeee31d
|
@ -52,6 +52,9 @@ func LoadConfig() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// load the default config
|
||||||
|
config = defaultConfig
|
||||||
|
|
||||||
file, err := os.Open(configPath)
|
file, err := os.Open(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Debug("default config file doesn't exist, using default")
|
logger.Debug("default config file doesn't exist, using default")
|
||||||
|
|
Loading…
Reference in New Issue