diff --git a/service/terraform-plugin/src/main/java/com/solace/maas/ep/event/management/agent/plugin/terraform/manager/TerraformLogProcessingService.java b/service/terraform-plugin/src/main/java/com/solace/maas/ep/event/management/agent/plugin/terraform/manager/TerraformLogProcessingService.java index f6bec5a5..2805fa17 100644 --- a/service/terraform-plugin/src/main/java/com/solace/maas/ep/event/management/agent/plugin/terraform/manager/TerraformLogProcessingService.java +++ b/service/terraform-plugin/src/main/java/com/solace/maas/ep/event/management/agent/plugin/terraform/manager/TerraformLogProcessingService.java @@ -77,8 +77,6 @@ public CommandResult buildTfCommandResult(List jsonLogs) { .filter(this::isErrorLog) .map(this::simplifyApplyErroredLog) .toList(); - ; - JobStatus status = CollectionUtils.isEmpty(errorLogs) ? JobStatus.success : JobStatus.error; return CommandResult.builder() .logs(ListUtils.union(successLogs, errorLogs)) @@ -86,7 +84,8 @@ public CommandResult buildTfCommandResult(List jsonLogs) { .build(); } - + + private Map parseTfOutput(String json) { try { return objectMapper.readValue(json, Map.class);