mirror of https://github.com/databricks/cli.git
Fix: bundle destroy fails when bundle.tf.json file is deleted (#519)
## Changes Adds the following steps to the destroy phase: 1. interpolate 2. write Resolves #518 ## Tests Tested manually due there not being an examples for tests to use.
This commit is contained in:
parent
db6313e99c
commit
533234f148
|
@ -14,6 +14,8 @@ func Destroy() bundle.Mutator {
|
||||||
lock.Acquire(),
|
lock.Acquire(),
|
||||||
bundle.Defer(
|
bundle.Defer(
|
||||||
bundle.Seq(
|
bundle.Seq(
|
||||||
|
terraform.Interpolate(),
|
||||||
|
terraform.Write(),
|
||||||
terraform.StatePull(),
|
terraform.StatePull(),
|
||||||
terraform.Plan(terraform.PlanGoal("destroy")),
|
terraform.Plan(terraform.PlanGoal("destroy")),
|
||||||
terraform.Destroy(),
|
terraform.Destroy(),
|
||||||
|
|
Loading…
Reference in New Issue