Skip to content

Commit 207820e

Browse files
committed
HADOOP-17725. Keep MSI tenant ID and client ID optional (ADDENDUM)
1 parent f544ef4 commit 207820e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AbfsConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,9 +812,9 @@ public AccessTokenProvider getTokenProvider() throws TokenAccessProviderExceptio
812812
FS_AZURE_ACCOUNT_OAUTH_MSI_ENDPOINT,
813813
AuthConfigurations.DEFAULT_FS_AZURE_ACCOUNT_OAUTH_MSI_ENDPOINT);
814814
String tenantGuid =
815-
getMandatoryPasswordString(FS_AZURE_ACCOUNT_OAUTH_MSI_TENANT);
815+
getPasswordString(FS_AZURE_ACCOUNT_OAUTH_MSI_TENANT);
816816
String clientId =
817-
getMandatoryPasswordString(FS_AZURE_ACCOUNT_OAUTH_CLIENT_ID);
817+
getPasswordString(FS_AZURE_ACCOUNT_OAUTH_CLIENT_ID);
818818
String authority = getTrimmedPasswordString(
819819
FS_AZURE_ACCOUNT_OAUTH_MSI_AUTHORITY,
820820
AuthConfigurations.DEFAULT_FS_AZURE_ACCOUNT_OAUTH_MSI_AUTHORITY);

0 commit comments

Comments
 (0)