Skip to content

Commit

Permalink
Skip pushing Terraform state after destroy (#1667)
Browse files Browse the repository at this point in the history
## Changes
Following up
#1583 (comment).

We can skip pushing because right after `root_path` is deleted, making
this a no-op effectively.
 
## Tests
  • Loading branch information
shreyas-goenka authored Aug 12, 2024
1 parent 0a4c0fb commit 1b984b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bundle/phases/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!"),
)
Expand Down

0 comments on commit 1b984b4

Please sign in to comment.