From bafea8b667ea3e0ebb25bf153773747179ce5b10 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Wed, 23 May 2018 13:43:09 -0700 Subject: [PATCH] Bug fix: using AND in place of OR or SSL flags. --- examples/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client.go b/examples/client.go index b34dcd2..e91cc79 100644 --- a/examples/client.go +++ b/examples/client.go @@ -50,7 +50,7 @@ func init() { flag.StringVar(&role, "role", "", "owner role to use") flag.StringVar(&caCertsPath, "caCertsPath", "", "Path to CA certs on local machine.") flag.StringVar(&clientCert, "clientCert", "", "Client certificate to use to connect to Aurora.") - flag.StringVar(&clientKey, "clientKey", "", "Client key to use to connect to Aurora.") + flag.StringVar(&clientKey, "clientKey", "", "Client private key to use to connect to Aurora.") flag.Parse() @@ -107,7 +107,7 @@ func main() { clientOptions = append(clientOptions, realis.SchedulerUrl(url)) } - if clientKey != "" || clientCert != "" || caCertsPath != "" { + if clientKey != "" && clientCert != "" && caCertsPath != "" { clientOptions = append(clientOptions, realis.Certspath(caCertsPath), realis.ClientCerts(clientKey, clientCert)) }