mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
Merge pull request #359 from MihaelaStoica/CA-162966
CA-162966: Fix the bug where the GPU value could not be updated via VM Properties for Linux HVM
This commit is contained in:
commit
2b2cb9f9f4
@ -66,9 +66,9 @@ namespace XenAdmin.Actions
|
||||
string device = "0"; // fixed at the moment, see PR-1060
|
||||
Dictionary<string, string> other_config = new Dictionary<string,string>();
|
||||
|
||||
if (Helpers.FeatureForbidden(vm, Host.RestrictVgpu))
|
||||
if (Helpers.FeatureForbidden(vm, Host.RestrictVgpu) || vgpuType == null)
|
||||
VGPU.async_create(Session, vm.opaque_ref, gpu_group.opaque_ref, device, other_config);
|
||||
else if (vgpuType != null)
|
||||
else
|
||||
VGPU.async_create(Session, vm.opaque_ref, gpu_group.opaque_ref, device,
|
||||
other_config, vgpuType.opaque_ref);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user