From d55ef6cc03eb9c5460618167d51de7fe1f99dba3 Mon Sep 17 00:00:00 2001 From: Nathan Herring Date: Mon, 1 Oct 2018 10:13:04 +0200 Subject: Fix inverted logic for --call_creds=none. Fixes #16622. Follow up to change 6e3938c. Thanks to @bluecmd for pointing it out. --- test/cpp/util/cli_credentials.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cpp/util/cli_credentials.cc b/test/cpp/util/cli_credentials.cc index 1125b2d945..91acc904aa 100644 --- a/test/cpp/util/cli_credentials.cc +++ b/test/cpp/util/cli_credentials.cc @@ -151,7 +151,7 @@ std::shared_ptr CliCredentials::GetCallCredentials() if (IsAccessToken(FLAGS_call_creds)) { return grpc::AccessTokenCredentials(AccessToken(FLAGS_call_creds)); } - if (FLAGS_call_creds.compare("none") != 0) { + if (FLAGS_call_creds.compare("none") == 0) { // Nothing to do; creds, if any, are baked into the channel. return std::shared_ptr(); } -- cgit v1.2.3