Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Preserve OCI container type through unified resource conversion

rcourtman100d639d1394
diff --git a/frontend-modern/src/hooks/useResources.ts b/frontend-modern/src/hooks/useResources.ts
index f096899701..aca58a6902 100644
--- a/frontend-modern/src/hooks/useResources.ts
+++ b/frontend-modern/src/hooks/useResources.ts
@@ -313,7 +313,7 @@ export function useResourcesAsLegacy() {
node: platformData?.node as string ?? '',
instance: platformData?.instance as string ?? r.platformId,
status: r.status === 'running' ? 'running' : 'stopped',
- type: 'lxc',
+ type: (platformData?.type as string) ?? 'lxc', // Preserve oci/lxc type from backend
cpu: (r.cpu?.current ?? 0) / 100, // Convert from percentage to ratio for Dashboard
cpus: platformData?.cpus as number ?? 1,
memory: r.memory ? {