From 1b984b4f62f01945b239515fa1ae10e2814bd9d8 Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:49:54 +0530 Subject: [PATCH] Skip pushing Terraform state after destroy (#1667) ## Changes Following up https://github.com/databricks/cli/pull/1583#discussion_r1681126323. We can skip pushing because right after `root_path` is deleted, making this a no-op effectively. ## Tests --- bundle/phases/destroy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/bundle/phases/destroy.go b/bundle/phases/destroy.go index 01b2766708..6eb8b6a01f 100644 --- a/bundle/phases/destroy.go +++ b/bundle/phases/destroy.go @@ -83,7 +83,6 @@ func Destroy() bundle.Mutator { // Core destructive mutators for destroy. These require informed user consent. destroyCore := bundle.Seq( terraform.Apply(), - terraform.StatePush(), files.Delete(), bundle.LogString("Destroy complete!"), )