From b028aebfafb27a93f6572ba36c8a01d2e1b6eb3c Mon Sep 17 00:00:00 2001 From: "dongyi.zhang" Date: Tue, 18 Jan 2022 14:10:57 +0800 Subject: [PATCH] modify destroy non interactive command to -auto-approve --- .../src/main/java/com/microsoft/terraform/TerraformClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform-client/src/main/java/com/microsoft/terraform/TerraformClient.java b/terraform-client/src/main/java/com/microsoft/terraform/TerraformClient.java index 96d59d0..51855a0 100644 --- a/terraform-client/src/main/java/com/microsoft/terraform/TerraformClient.java +++ b/terraform-client/src/main/java/com/microsoft/terraform/TerraformClient.java @@ -14,7 +14,7 @@ public class TerraformClient implements AutoCloseable { private static final Map NON_INTERACTIVE_COMMAND_MAP = new HashMap<>(); static { NON_INTERACTIVE_COMMAND_MAP.put(APPLY_COMMAND, "-auto-approve"); - NON_INTERACTIVE_COMMAND_MAP.put(DESTROY_COMMAND, "-force"); + NON_INTERACTIVE_COMMAND_MAP.put(DESTROY_COMMAND, "-auto-approve"); } private final ExecutorService executor = Executors.newWorkStealingPool();