Skip to content

Commit

Permalink
fix file checking logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Nov 12, 2024
1 parent 56551c6 commit 1ff7a92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ ChannelCredentials createS2ASecuredChannelCredentials() {
// Try to load MTLS-MDS creds.
File rootFile = new File(MTLS_MDS_ROOT);
File certKeyFile = new File(MTLS_MDS_CERT_CHAIN_AND_KEY);
if (!rootFile.isFile() || !certKeyFile.isFile()) {
if (rootFile.isFile() && certKeyFile.isFile()) {
// Try to connect to S2A using mTLS.
ChannelCredentials mtlsToS2AChannelCredentials = null;
try {
Expand Down

0 comments on commit 1ff7a92

Please sign in to comment.