Fix inverted logic for --call_creds=none.

Fixes #16622. Follow up to change 6e3938c. Thanks to @bluecmd for pointing it out.
pull/16742/head
Nathan Herring 6 years ago
parent 616b119aa6
commit d55ef6cc03
  1. 2
      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>();
}

Loading…
Cancel
Save