From f2ff4db494908971fc82f65bb88b41189922397b Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Tue, 5 Nov 2024 13:03:40 +0100 Subject: [PATCH] resolve variables for backward compatibility --- cmd/bundle/destroy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/bundle/destroy.go b/cmd/bundle/destroy.go index 9cb97bdc9..f0b75f97c 100644 --- a/cmd/bundle/destroy.go +++ b/cmd/bundle/destroy.go @@ -6,6 +6,7 @@ import ( "os" "github.com/databricks/cli/bundle" + "github.com/databricks/cli/bundle/config/mutator" "github.com/databricks/cli/bundle/phases" "github.com/databricks/cli/cmd/bundle/utils" "github.com/databricks/cli/cmd/root" @@ -62,6 +63,9 @@ func newDestroyCommand() *cobra.Command { diags = bundle.Apply(ctx, b, bundle.Seq( phases.Initialize(), + mutator.ResolveVariableReferences( + "artifacts", + ), phases.Destroy(), )) if err := diags.Error(); err != nil {