Skip to content

Commit

Permalink
CLOUDSTACK-7763 Reservations for VMware VMs remain after dynamic scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
bvbharat authored and kishankavala committed Nov 10, 2014
1 parent de3eb88 commit 0e7f1ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ protected ScaleVmAnswer execute(ScaleVmCommand cmd) {
VmwareHypervisorHost hyperHost = getHyperHost(context);
VirtualMachineMO vmMo = hyperHost.findVmOnHyperHost(cmd.getVmName());
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
int ramMb = (int)(vmSpec.getMinRam() / (1024 * 1024));
int ramMb = getReservedMemoryMb(vmSpec);
long hotaddIncrementSizeInMb;
long hotaddMemoryLimitInMb;
long requestedMaxMemoryInMb = vmSpec.getMaxRam() / (1024 * 1024);
Expand Down

0 comments on commit 0e7f1ea

Please sign in to comment.