From 67be3668582c2bc94d0120aae6b78b137b61361d Mon Sep 17 00:00:00 2001 From: Mihaela Stoica Date: Mon, 15 Aug 2016 15:15:00 +0100 Subject: [PATCH] CA-180127: Unable to unset VM home server if all shared SRs are full By passing null as the srHost parameter to the affinity picker, the "no home server" radio button remains enabled, even when no shared SRs are available, allowing users to unset the home server of a VM Signed-off-by: Mihaela Stoica --- XenAdmin/SettingsPanels/HomeServerEditPage.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/XenAdmin/SettingsPanels/HomeServerEditPage.cs b/XenAdmin/SettingsPanels/HomeServerEditPage.cs index 46a386869..368fe33f1 100644 --- a/XenAdmin/SettingsPanels/HomeServerEditPage.cs +++ b/XenAdmin/SettingsPanels/HomeServerEditPage.cs @@ -84,10 +84,7 @@ namespace XenAdmin.SettingsPanels return; Host currentAffinity = vm.Connection.Resolve(vm.affinity); - picker.SetAffinity(vm.Connection, currentAffinity, - vm.HasNoDisksAndNoLocalCD - ? null - : vm.GetStorageHost(false)); + picker.SetAffinity(vm.Connection, currentAffinity, null); } public bool ValidToSave