From b8118c9b88ad3b8d8f415e55c8aa00fef5054d68 Mon Sep 17 00:00:00 2001 From: Felipe Neiva Date: Wed, 10 Sep 2025 18:49:25 -0300 Subject: [PATCH] Minor fix to Databricks Apps deployment script when not using the DEFAULT Databricks CLI profile --- src/deploy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/deploy.py b/src/deploy.py index cf521536..7cb195a7 100644 --- a/src/deploy.py +++ b/src/deploy.py @@ -248,6 +248,10 @@ def deploy_source_to_databricks( str(databricks_dist), workspace_dir ] + + if profile is not None: + import_cmd.append("--profile") + import_cmd.append(profile) logger.info(f"About to run command: {' '.join(import_cmd)}") logger.info(f"Uploading from: {databricks_dist}")