Merge pull request #889 from benphelps/fix-864
Don't include LXC templates in LXC count
This commit is contained in:
commit
b0f16f6612
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export default function Component({ service }) {
|
||||||
|
|
||||||
const { data } = clusterData ;
|
const { data } = clusterData ;
|
||||||
const vms = data.filter(item => item.type === "qemu") || [];
|
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 nodes = data.filter(item => item.type === "node") || [];
|
||||||
|
|
||||||
const runningVMs = vms.reduce(calcRunning, 0);
|
const runningVMs = vms.reduce(calcRunning, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue