From 79a52dc59223c4e035197ce9feba203ceb6347cb Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 21 Jan 2025 16:43:18 +0100 Subject: [PATCH] Revert "remove unused parameter" This reverts commit c0cf3f85357fc5f32c6c0fb2ebc765f0a74d9a03. --- bundle/bundle.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bundle/bundle.go b/bundle/bundle.go index 11ad06850..5d19b52e4 100644 --- a/bundle/bundle.go +++ b/bundle/bundle.go @@ -12,6 +12,7 @@ import ( "fmt" "os" "path/filepath" + "sync" "github.com/databricks/cli/bundle/config" "github.com/databricks/cli/bundle/env" @@ -68,7 +69,9 @@ type Bundle struct { Metadata metadata.Metadata // Store a pointer to the workspace client. - client *databricks.WorkspaceClient + // It can be initialized on demand after loading the configuration. + clientOnce sync.Once + client *databricks.WorkspaceClient // Files that are synced to the workspace.file_path Files []fileset.File