CA-363819: Fixed issue where VM network usage data were not shown on the Search TabPage.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2022-02-16 20:49:03 +00:00
parent 29189873a3
commit 8493ee5e90

View File

@ -531,7 +531,7 @@ namespace XenAdmin.XenSearch
if (o is VM vm)
{
return vm.is_a_real_vm() &&
vm.power_state != vm_power_state.Running &&
vm.power_state == vm_power_state.Running &&
vm.GetVirtualisationStatus(out _).HasFlag(VM.VirtualisationStatus.IO_DRIVERS_INSTALLED)
? PropertyAccessorHelper.vmNetworkUsageString(vm)
: null;