From 1a5fa228abe4f3e5d5192f157e4b2cfb11448770 Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Thu, 17 Jun 2021 14:24:07 +0300 Subject: [PATCH] azure: add allow_anonymous_login option to the schema (#6190) --- dvc/config_schema.py | 1 + dvc/fs/azure.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/config_schema.py b/dvc/config_schema.py index 9dea7b1e0..dfa2a0ac2 100644 --- a/dvc/config_schema.py +++ b/dvc/config_schema.py @@ -189,6 +189,7 @@ SCHEMA = { "tenant_id": str, "client_id": str, "client_secret": str, + "allow_anonymous_login": bool, **REMOTE_COMMON, }, "oss": { diff --git a/dvc/fs/azure.py b/dvc/fs/azure.py index acdf06fe1..4004e258b 100644 --- a/dvc/fs/azure.py +++ b/dvc/fs/azure.py @@ -147,7 +147,7 @@ class AzureFileSystem(ObjectFSWrapper): if ( login_info["account_name"] and not any_secondary - and not config.get("allow_anonymous_login") + and not config.get("allow_anonymous_login", False) ): login_info["credential"] = DefaultAzureCredential( exclude_interactive_browser_credential=False