Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
feat: add allowNonDefaultServiceAccount option for DirectPath
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanli-ml committed Aug 5, 2021
1 parent d965d51 commit 41c56d8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -277,8 +277,8 @@ private boolean isDirectPathEnabled(String serviceAddress) {
}

private boolean isNonDefaultServiceAccountAllowed() {
if (allowNonDefaultServiceAccount != null) {
return allowNonDefaultServiceAccount;
if (allowNonDefaultServiceAccount != null && allowNonDefaultServiceAccount) {
return true;
}
return credentials instanceof ComputeEngineCredentials;
}
Expand Down

0 comments on commit 41c56d8

Please sign in to comment.