From 7f0f164a14833ea8c584d73e16bab5508725b014 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Mon, 28 Oct 2019 18:42:08 +0200 Subject: [PATCH] Updated checkConfigSanity --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 95a88b70b..3b72e9405 100755 --- a/config/config.go +++ b/config/config.go @@ -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) } }