diff --git a/src/main/java/net/educoder/util/JCloudUtil.java b/src/main/java/net/educoder/util/JCloudUtil.java index 800b8db..11cec1a 100644 --- a/src/main/java/net/educoder/util/JCloudUtil.java +++ b/src/main/java/net/educoder/util/JCloudUtil.java @@ -418,12 +418,12 @@ public class JCloudUtil { } log.info("重置云主机成功:serverId:{},", resetCloudHostParam.getServerId()); -// SleepUtil.sleep(50 * 1000); -// log.info("oneStepRebuildCloudHost 开始执行修改云主机:{} 密码", serverId); -// boolean changePwdStatus = changePassword(apiToken, serverId, "Educoder123"); -// if (!changePwdStatus) { -// log.error("oneStepRebuildCloudHost serverId:{}密码修改失败", serverId); -// } + SleepUtil.sleep(50 * 1000); + log.info("oneStepRebuildCloudHost 开始执行修改云主机:{} 密码", serverId); + boolean changePwdStatus = changePassword(apiToken, serverId, "Educoder123"); + if (!changePwdStatus) { + log.error("oneStepRebuildCloudHost serverId:{}密码修改失败", serverId); + } } log.info("rebuild与主机完成serverId:{}", serverId); } @@ -509,7 +509,8 @@ public class JCloudUtil { // oneStepRebuildCloudHost(apiToken,"8abf7057-95db-4b57-9a64-8249a4c64680", resetCloudHostParam); - createCloudHost(apiToken,defaultCreateCloudHostParam("6d3b7f00-0c33-4bad-9a74-ca7d8d7e7b39", "3302992e-0143-4e06-9d11-78abe8881c5f")); +// createCloudHost(apiToken,defaultCreateCloudHostParam("6d3b7f00-0c33-4bad-9a74-ca7d8d7e7b39", "3302992e-0143-4e06-9d11-78abe8881c5f")); + changePassword(apiToken,"97fd26e6-f54e-48bd-896b-7f8a7367858a", "Educoder123"); }