fix(cli): 修复deploy.plan路径错误导致无法保留上一次部署计划
This commit is contained in:
@@ -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>>>() {});
|
||||
|
||||
Reference in New Issue
Block a user