mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-19 17:59:18 +01:00
fix(config): should return defaultConfig when config file doesnt exist
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user