8000 fix file checking logic. · rmehta19/sdk-platform-java@1ff7a92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ff7a92

Browse files
committed
fix file checking logic.
1 parent 56551c6 commit 1ff7a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ ChannelCredentials createS2ASecuredChannelCredentials() {
502502
// Try to load MTLS-MDS creds.
503503
File rootFile = new File(MTLS_MDS_ROOT);
504504
File certKeyFile = new File(MTLS_MDS_CERT_CHAIN_AND_KEY);
505-
if (!rootFile.isFile() || !certKeyFile.isFile()) {
505+
if (rootFile.isFile() && certKeyFile.isFile()) {
506506
// Try to connect to S2A using mTLS.
507507
ChannelCredentials mtlsToS2AChannelCredentials = null;
508508
try {

0 commit comments

Comments
 (0)
0