From 9dcf08099aac87edd4b8af3a8571fa9b8095f9cb Mon Sep 17 00:00:00 2001 From: Zohar Elkayam <5897181+realmgic@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:14:11 +0300 Subject: [PATCH] fix validation according to PR comment --- observer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/observer.go b/observer.go index eccacb75..50d8609f 100644 --- a/observer.go +++ b/observer.go @@ -104,8 +104,8 @@ func newObserver(server *aero.Host, user, pass string) (o *Observer, err error) case "external": clientPolicy.AuthMode = aero.AuthModeExternal case "pki": - if len(config.Aerospike.RootCA) == 0 || len(config.Aerospike.CertFile) == 0 || len(config.Aerospike.KeyFile) == 0 { - log.Fatalln("Invalid certificate configuration when using auth mode PKI: cert_file, key_file, root_ca must be set") + if len(config.Aerospike.CertFile) == 0 || len(config.Aerospike.KeyFile) == 0 { + log.Fatalln("Invalid certificate configuration when using auth mode PKI: cert_file and key_file must be set") } clientPolicy.AuthMode = aero.AuthModePKI default: