Skip to content

Commit 5e56c49

Browse files
Heorhi Shynkevichbahamat
Heorhi Shynkevich
authored andcommitted
Replaced deprecated destroy flag
1 parent 3c701eb commit 5e56c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/run_terraform.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func RunTerraformDestroyWithState(currentState state.State, args []string) error
140140
}
141141

142142
// Run terraform destroy
143-
allArgs := append([]string{"destroy", "-force"}, args...)
143+
allArgs := append([]string{"destroy", "-auto-approve"}, args...)
144144
err = runShellCommand(&shellOptions, "terraform", allArgs...)
145145
if err != nil {
146146
return err

0 commit comments

Comments
 (0)