重构云主机需要重置密码

master
youys 2 years ago
parent f427a61272
commit 498d9c981d

@ -418,12 +418,12 @@ public class JCloudUtil {
} }
log.info("重置云主机成功:serverId:{},", resetCloudHostParam.getServerId()); log.info("重置云主机成功:serverId:{},", resetCloudHostParam.getServerId());
// SleepUtil.sleep(50 * 1000); SleepUtil.sleep(50 * 1000);
// log.info("oneStepRebuildCloudHost 开始执行修改云主机:{} 密码", serverId); log.info("oneStepRebuildCloudHost 开始执行修改云主机:{} 密码", serverId);
// boolean changePwdStatus = changePassword(apiToken, serverId, "Educoder123"); boolean changePwdStatus = changePassword(apiToken, serverId, "Educoder123");
// if (!changePwdStatus) { if (!changePwdStatus) {
// log.error("oneStepRebuildCloudHost serverId:{}密码修改失败", serverId); log.error("oneStepRebuildCloudHost serverId:{}密码修改失败", serverId);
// } }
} }
log.info("rebuild与主机完成serverId:{}", serverId); log.info("rebuild与主机完成serverId:{}", serverId);
} }
@ -509,7 +509,8 @@ public class JCloudUtil {
// oneStepRebuildCloudHost(apiToken,"8abf7057-95db-4b57-9a64-8249a4c64680", resetCloudHostParam); // 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");
} }

Loading…
Cancel
Save