From 7003fcd0b307277d7b45a6c573d44a0b91f8f472 Mon Sep 17 00:00:00 2001 From: Robert Pack <42610831+roeap@users.noreply.github.com> Date: Sat, 13 May 2023 17:58:00 +0200 Subject: [PATCH] Update rust/src/data_catalog/unity/mod.rs Co-authored-by: nohajc --- rust/src/data_catalog/unity/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rust/src/data_catalog/unity/mod.rs b/rust/src/data_catalog/unity/mod.rs index a2180f159b..2acb84e9b2 100644 --- a/rust/src/data_catalog/unity/mod.rs +++ b/rust/src/data_catalog/unity/mod.rs @@ -395,7 +395,13 @@ impl UnityCatalogBuilder { )), )); } - ++ if self.use_azure_cli { ++ return Some(CredentialProvider::TokenCredential( ++ Default::default(), ++ Box::new(AzureCliCredential::new()), ++ )); ++ } ++ None }