mirror of https://github.com/databricks/cli.git
resolve variables for backward compatibility
This commit is contained in:
parent
ac40e02195
commit
f2ff4db494
|
@ -6,6 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/databricks/cli/bundle"
|
"github.com/databricks/cli/bundle"
|
||||||
|
"github.com/databricks/cli/bundle/config/mutator"
|
||||||
"github.com/databricks/cli/bundle/phases"
|
"github.com/databricks/cli/bundle/phases"
|
||||||
"github.com/databricks/cli/cmd/bundle/utils"
|
"github.com/databricks/cli/cmd/bundle/utils"
|
||||||
"github.com/databricks/cli/cmd/root"
|
"github.com/databricks/cli/cmd/root"
|
||||||
|
@ -62,6 +63,9 @@ func newDestroyCommand() *cobra.Command {
|
||||||
|
|
||||||
diags = bundle.Apply(ctx, b, bundle.Seq(
|
diags = bundle.Apply(ctx, b, bundle.Seq(
|
||||||
phases.Initialize(),
|
phases.Initialize(),
|
||||||
|
mutator.ResolveVariableReferences(
|
||||||
|
"artifacts",
|
||||||
|
),
|
||||||
phases.Destroy(),
|
phases.Destroy(),
|
||||||
))
|
))
|
||||||
if err := diags.Error(); err != nil {
|
if err := diags.Error(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue