From 0d5f8f6e7c381c1e3e149744e8ce41c745801fcf Mon Sep 17 00:00:00 2001 From: Jason Fischer Date: Sat, 28 Jan 2023 12:59:20 -0800 Subject: [PATCH] Don't include LXC templates in LXC count fixes #864 --- src/widgets/proxmox/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/proxmox/component.jsx b/src/widgets/proxmox/component.jsx index 1d384b546..3741904a9 100644 --- a/src/widgets/proxmox/component.jsx +++ b/src/widgets/proxmox/component.jsx @@ -32,7 +32,7 @@ export default function Component({ service }) { const { data } = clusterData ; const vms = data.filter(item => item.type === "qemu") || []; - const lxc = data.filter(item => item.type === "lxc") || []; + const lxc = data.filter(item => item.type === "lxc" && item.template === 0) || []; const nodes = data.filter(item => item.type === "node") || []; const runningVMs = vms.reduce(calcRunning, 0);