fix: 修复cv4pve sdk (proxmox插件连接失败时无法正常结束任务的bug)

This commit is contained in:
xiaojunnuo
2025-06-04 13:36:31 +08:00
parent 0e7e44cee2
commit 49f26b4049
3 changed files with 53 additions and 56 deletions
+1 -1
View File
@@ -54,7 +54,7 @@
"@certd/plugin-lib": "^1.34.10",
"@certd/plugin-plus": "^1.34.10",
"@certd/plus-core": "^1.34.10",
"@corsinvest/cv4pve-api-javascript": "^8.3.0",
"@certd/cv4pve-api-javascript": "^8.4.1",
"@huaweicloud/huaweicloud-sdk-cdn": "^3.1.120",
"@huaweicloud/huaweicloud-sdk-core": "^3.1.120",
"@koa/cors": "^5.0.0",
@@ -93,7 +93,7 @@ export class ProxmoxUploadCert extends AbstractPlusTaskPlugin {
async getClient() {
const access: ProxmoxAccess = await this.getAccess<ProxmoxAccess>(this.accessId);
const pve = await import('@corsinvest/cv4pve-api-javascript');
const pve = await import('@certd/cv4pve-api-javascript');
const client = new pve.PveClient(access.host, access.port);
const login = await client.login(access.username, access.password, 'pam');
if (!login) {