Commit 66ca475f authored by ale's avatar ale

Fix an error when 'services' is not set in config

parent 2b0dc1aa
Pipeline #3942 passed with stages
in 2 minutes and 4 seconds
......@@ -117,6 +117,11 @@ func LoadConfig(path string) (*Config, error) {
})
}
// Services shouldn't be nil from here onwards.
if config.Services == nil {
config.Services = make(map[string]*ServiceConfig)
}
// Load service definitions from a directory if necessary, and
// merge them into config.Services.
if config.ServicesDir != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment