Merge pull request #16742 from Capstan/cli-call-creds

Fix inverted logic for --call_creds=none.
pull/16424/merge
Yang Gao 6 years ago committed by GitHub
commit 2e43da886c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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