Fix backwards logic checking for --call_creds=none

release note: no
pull/16616/head
David Hoover 6 years ago committed by David Hoover
parent 8ff6bcf0cc
commit 118e69a484
  1. 2
      test/cpp/util/cli_credentials.cc

@ -118,7 +118,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