From 498d9c981d900be4310df2fd817c5402e63896d3 Mon Sep 17 00:00:00 2001 From: youys <1272586223@qq.com> Date: Fri, 9 Sep 2022 13:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BA=91=E4=B8=BB=E6=9C=BA?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E9=87=8D=E7=BD=AE=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/educoder/util/JCloudUtil.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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"); }