Skip to content

Commit ea99ff1

Browse files
bvbharatkishankavala
authored andcommitted
CLOUDSTACK-7763 Reservations for VMware VMs remain after dynamic scaling
1 parent cf27ecd commit ea99ff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ protected ScaleVmAnswer execute(ScaleVmCommand cmd) {
12811281
VmwareHypervisorHost hyperHost = getHyperHost(context);
12821282
VirtualMachineMO vmMo = hyperHost.findVmOnHyperHost(cmd.getVmName());
12831283
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
1284-
int ramMb = (int)(vmSpec.getMinRam() / (1024 * 1024));
1284+
int ramMb = getReservedMemoryMb(vmSpec);
12851285
long hotaddIncrementSizeInMb;
12861286
long hotaddMemoryLimitInMb;
12871287
long requestedMaxMemoryInMb = vmSpec.getMaxRam() / (1024 * 1024);

0 commit comments

Comments
 (0)