From 1768215b6b9bfe3196a2d70564c15c70ea6ef658 Mon Sep 17 00:00:00 2001 From: Xinyi Wang Date: Fri, 23 Feb 2024 08:47:56 -0800 Subject: [PATCH] fix the typo --- command/resource/client/grpc-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/resource/client/grpc-client.go b/command/resource/client/grpc-client.go index 338f26d59e..1ba1a481fe 100644 --- a/command/resource/client/grpc-client.go +++ b/command/resource/client/grpc-client.go @@ -53,7 +53,7 @@ func dial(c *GRPCConfig) (*grpc.ClientConn, error) { func checkCertificates(c *GRPCConfig) error { if c.GRPCTLS { certFileEmpty := c.CertFile == "" - keyFileEmpty := c.CertFile == "" + keyFileEmpty := c.KeyFile == "" // both files need to be empty or both files need to be provided if certFileEmpty != keyFileEmpty {