diff --git a/Hyper-V/clusters.php b/Hyper-V/clusters.php index e3477ab..99b4c5a 100644 --- a/Hyper-V/clusters.php +++ b/Hyper-V/clusters.php @@ -44,7 +44,7 @@ '' and cluster not like '%-WM%' and cluster not like '%-C1MAS%' order by cluster"); + $clusters = Invoke_Infra("select distinct cluster from cmdb_HyperV_Hosts where cluster <> '' and cluster not like '%-WM%' and cluster not like '%-C1MAS%' and cluster not like '%-vrs%' and (cluster like 'DUN%' or cluster like 'DMV%') order by cluster"); ?>
@@ -56,7 +56,7 @@ if ($count / 4 == (int) ($count / 4)) { echo "
"; } - $data = Invoke_Infra("select * from cmdb_HyperV_Clusters where cluster = '" . $cluster['cluster'] . "'"); + $data = Invoke_Infra("select * from cmdb_HyperV_Hosts where cluster = '" . $cluster['cluster'] . "'"); $nodes = count($data); $vms = 0; $vm_mem = 0;