File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_datastore Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,12 @@ def from_rest_datastore_credentials(
3030 config_class : Any = NoneCredentialConfiguration
3131
3232 if isinstance (rest_credentials , (models .AccountKeyDatastoreCredentials , models2024 .AccountKeyDatastoreCredentials )):
33- config_class = AccountKeyConfiguration
33+ # we are no more using key for key base account.
34+ # https://github.com/Azure/azure-sdk-for-python/pull/35716
35+ if isinstance (rest_credentials .secrets , models2024 .SasDatastoreSecrets ):
36+ config_class = SasTokenConfiguration
37+ else :
38+ config_class = AccountKeyConfiguration
3439 elif isinstance (rest_credentials , (models .SasDatastoreCredentials , models2024 .SasDatastoreCredentials )):
3540 config_class = SasTokenConfiguration
3641 elif isinstance (
You can’t perform that action at this time.
0 commit comments