resolve variables for backward compatibility

This commit is contained in:
Andrew Nester 2024-11-05 13:03:40 +01:00
parent ac40e02195
commit f2ff4db494
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
1 changed files with 4 additions and 0 deletions

View File

@ -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 {