diff options
author | Nathan Herring <nherring@google.com> | 2018-10-01 10:13:04 +0200 |
---|---|---|
committer | Nathan Herring <nherring@google.com> | 2018-10-01 10:13:04 +0200 |
commit | d55ef6cc03eb9c5460618167d51de7fe1f99dba3 (patch) | |
tree | b27d76faa10507f080803dea35ade1641fce95bb /test/cpp/util | |
parent | 616b119aa63619ee5f1324cd57a5f7158f9b5c36 (diff) |
Fix inverted logic for --call_creds=none.
Fixes #16622. Follow up to change 6e3938c. Thanks to @bluecmd for pointing it out.
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/cli_credentials.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<grpc::CallCredentials> 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<grpc::CallCredentials>(); } |