Skip to content

Commit 4727bf3

Browse files
committed
fix(proxmox): remove dead v0 getConfig shadowing the v1 NIC-config method
The vm object had two getConfig methods; the later (v0 vm_get_config) won, so the import's getConfig(vmid, vmtype) call hit the v0 endpoint with wrong args (422) and imported VMs got no NIC detail -> flat, no network nodes/edges. Removed the dead v0 getConfig (no other callers).
1 parent a40f147 commit 4727bf3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/services/proxmox/api.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212
ProxmoxNode,
1313
// VM types
1414
VmCreateRequest,
15-
VmConfig,
1615
VmListItem,
1716
VmActionRequest,
1817
VmCloneRequest,
@@ -343,13 +342,6 @@ export const vm = {
343342
return getHostVmConfig(vmId, vmtype)
344343
},
345344

346-
/**
347-
* Get VM configuration
348-
*/
349-
async getConfig(node: ProxmoxNode, vmId: number): Promise<VmConfig> {
350-
return query('/v0/admin/proxmox/vms/vm_id/config/vm_get_config', { proxmox_node: node, vm_id: String(vmId) })
351-
},
352-
353345
/**
354346
* Create a new VM
355347
*/

0 commit comments

Comments
 (0)