Commit b42f823c authored by Ahmad Siavashi's avatar Ahmad Siavashi

Fix GpuVmAllocationPolicySimple class

parent 416a6d4e
......@@ -29,7 +29,9 @@ public class GpuVmAllocationPolicySimple extends GpuVmAllocationPolicy {
boolean result = allocateHostForVm(vm, host);
if (!result) {
continue;
} else if (!gpuVm.hasVgpu() || allocateGpuForVgpu(gpuVm.getVgpu(), (GpuHost) host)) {
} else if (!gpuVm.hasVgpu()) {
return true;
} else if (((GpuHost) host).isGpuEquipped() && allocateGpuForVgpu(gpuVm.getVgpu(), (GpuHost) host)) {
return true;
}
deallocateHostForVm(gpuVm);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment