mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Add elsCAPath opt and improve opt comments
This commit is contained in:
committed by
Dan Christian Bogos
parent
e982499e71
commit
2511c00db7
@@ -74,8 +74,8 @@ func (e *ElasticEE) parseClientOpts() error {
|
||||
if opts.APIKey != nil {
|
||||
e.clientCfg.APIKey = *opts.APIKey
|
||||
}
|
||||
if e.Cfg().Opts.RPC.CAPath != nil {
|
||||
cacert, err := os.ReadFile(*e.Cfg().Opts.RPC.CAPath)
|
||||
if opts.CAPath != nil {
|
||||
cacert, err := os.ReadFile(*opts.CAPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user