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
This commit is contained in:
shreyas-goenka 2024-08-12 14:49:54 +05:30 committed by GitHub
parent 0a4c0fb588
commit 1b984b4f62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -83,7 +83,6 @@ func Destroy() bundle.Mutator {
// Core destructive mutators for destroy. These require informed user consent. // Core destructive mutators for destroy. These require informed user consent.
destroyCore := bundle.Seq( destroyCore := bundle.Seq(
terraform.Apply(), terraform.Apply(),
terraform.StatePush(),
files.Delete(), files.Delete(),
bundle.LogString("Destroy complete!"), bundle.LogString("Destroy complete!"),
) )