mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
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 <mihaela.stoica@citrix.com>
This commit is contained in:
parent
c90582a72e
commit
67be366858
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user