mirror of https://github.com/databricks/cli.git
starting apply message cleanup
This commit is contained in:
parent
e0369512b4
commit
8da8dd579d
|
@ -72,9 +72,14 @@ func (w *apply) Apply(ctx context.Context, b *bundle.Bundle) ([]bundle.Mutator,
|
||||||
return nil, fmt.Errorf("no plan found")
|
return nil, fmt.Errorf("no plan found")
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdio.LogString(ctx, "\nStarting resource deployment")
|
if w.goal == ApplyDeploy {
|
||||||
|
cmdio.LogString(ctx, "\nStarting resource deployment")
|
||||||
|
}
|
||||||
|
if w.goal == ApplyDestroy {
|
||||||
|
cmdio.LogString(ctx, "\nStarting resource destruction")
|
||||||
|
}
|
||||||
|
|
||||||
// Apply terraform according to the computed destroy plan
|
// Apply terraform according to the computed plan
|
||||||
err = tf.Apply(ctx, tfexec.DirOrPlan(b.Plan.Path))
|
err = tf.Apply(ctx, tfexec.DirOrPlan(b.Plan.Path))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("terraform apply: %w", err)
|
return nil, fmt.Errorf("terraform apply: %w", err)
|
||||||
|
|
|
@ -13,8 +13,6 @@ import (
|
||||||
"golang.org/x/term"
|
"golang.org/x/term"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: note possibility of aliases
|
|
||||||
|
|
||||||
var destroyCmd = &cobra.Command{
|
var destroyCmd = &cobra.Command{
|
||||||
Use: "destroy",
|
Use: "destroy",
|
||||||
Short: "Destroy deployed bundle resources",
|
Short: "Destroy deployed bundle resources",
|
||||||
|
|
Loading…
Reference in New Issue