From dc1905faecfe644da895299a46465c45579780e0 Mon Sep 17 00:00:00 2001 From: WangLiNaruto Date: Tue, 2 Jan 2024 15:22:30 +0800 Subject: [PATCH] remove async threads when terraform-boot is activated --- .../boot/terraform/service/TerraformDirectoryService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java b/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java index 08c54d6..7759b2d 100644 --- a/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java +++ b/src/main/java/org/eclipse/xpanse/terraform/boot/terraform/service/TerraformDirectoryService.java @@ -164,6 +164,7 @@ public TerraformPlan getTerraformPlanFromDirectory(TerraformPlanFromDirectoryReq String moduleDirectory) { String result = executor.getTerraformPlanAsJson(request.getVariables(), request.getEnvVariables(), moduleDirectory); + deleteWorkspace(executor.getModuleFullPath(moduleDirectory)); return TerraformPlan.builder().plan(result).build(); }