From 533234f14826444d186d222c27a6733dcc09da8d Mon Sep 17 00:00:00 2001 From: stikkireddy <54602805+stikkireddy@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:58:06 -0400 Subject: [PATCH] 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. --- bundle/phases/destroy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundle/phases/destroy.go b/bundle/phases/destroy.go index b0ed5d62..5841916d 100644 --- a/bundle/phases/destroy.go +++ b/bundle/phases/destroy.go @@ -14,6 +14,8 @@ func Destroy() bundle.Mutator { lock.Acquire(), bundle.Defer( bundle.Seq( + terraform.Interpolate(), + terraform.Write(), terraform.StatePull(), terraform.Plan(terraform.PlanGoal("destroy")), terraform.Destroy(),