Remove unnecessary call to the server when we should be going to the cache

# HG changeset patch
# User Stephen Turner <stephen.turner@citrix.com>
# Date 1384881463 0
#      Tue Nov 19 17:17:43 2013 +0000
# Node ID 6db4e665ff9e4fe9df6f474a94a0cdfbb6e23764
# Parent  030ebb6e2f6964a4dbf9d5602c69cb23fcc0cbdb

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2013-12-11 10:19:31 +00:00
parent c5e37d6ee3
commit 20ec1d9200

View File

@ -249,9 +249,7 @@ namespace XenAdmin.SettingsPanels
}
else
{
var enabledRefs = GPU_group.get_enabled_VGPU_types(Connection.Session, gpu_group.opaque_ref);
var enabledTypes = Connection.ResolveAll(enabledRefs);
var enabledTypes = Connection.ResolveAll(gpu_group.enabled_VGPU_types);
var allTypes = Connection.ResolveAll(gpu_group.supported_VGPU_types);
var disabledTypes = allTypes.FindAll(t => !enabledTypes.Exists(e => e.opaque_ref == t.opaque_ref));