mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 06:38:45 +05:00
Updated checkConfigSanity
This commit is contained in:
committed by
Dan Christian Bogos
parent
3a1d781f78
commit
7f0f164a14
@@ -685,10 +685,10 @@ func (cfg *CGRConfig) checkConfigSanity() error {
|
||||
}
|
||||
}
|
||||
// StorDB sanity checks
|
||||
if self.storDbCfg.Type == utils.POSTGRES {
|
||||
if cfg.storDbCfg.Type == utils.POSTGRES {
|
||||
if !utils.IsSliceMember([]string{utils.PostgressSSLModeDisable, utils.PostgressSSLModeAllow,
|
||||
utils.PostgressSSLModePrefer, utils.PostgressSSLModeRequire, utils.PostgressSSLModeVerifyCa,
|
||||
utils.PostgressSSLModeVerifyFull}, self.storDbCfg.SSLMode) {
|
||||
utils.PostgressSSLModeVerifyFull}, cfg.storDbCfg.SSLMode) {
|
||||
return fmt.Errorf("<%s> Unsuported sslmode for storDB", utils.StorDB)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user