fix(cli): 修复deploy.plan路径错误导致无法保留上一次部署计划

This commit is contained in:
2024-02-27 22:02:57 +08:00
parent 3e3dd09d52
commit 2c36a826a5

View File

@@ -102,7 +102,7 @@ public class RunnerApplication implements ApplicationRunner {
String absolutRootPath = root.toAbsolutePath().toString();
logger.info("Current path: {}", absolutRootPath);
Path planPath = Paths.get("deploy.plan");
Path planPath = Paths.get(root.toString(), "deploy.plan");
Map<String, List<String>> deployPlans = new HashMap<>();
if (Files.exists(planPath) && !deployInformationProperties.getShuffler()) {
deployPlans = mapper.readValue(new String(Files.readAllBytes(planPath)), new TypeReference<Map<String, List<String>>>() {});