mirror of https://github.com/apache/cloudstack.git
bug 10764: changing service offering drops cpu cap
status 10764: resolved fixed
This commit is contained in:
parent
0df4c628a8
commit
5322accbc8
|
|
@ -352,7 +352,11 @@ public class VMInstanceVO implements VirtualMachine, FiniteStateObject<State, Vi
|
|||
public boolean limitCpuUse() {
|
||||
return limitCpuUse;
|
||||
}
|
||||
|
||||
|
||||
public void setLimitCpuUse(boolean value) {
|
||||
limitCpuUse = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPrivateMacAddress() {
|
||||
return privateMacAddress;
|
||||
|
|
|
|||
|
|
@ -960,6 +960,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
UserVmVO vmForUpdate = _vmDao.createForUpdate();
|
||||
vmForUpdate.setServiceOfferingId(serviceOfferingId);
|
||||
vmForUpdate.setHaEnabled(_serviceOfferingDao.findById(serviceOfferingId).getOfferHA());
|
||||
vmForUpdate.setLimitCpuUse(_serviceOfferingDao.findById(serviceOfferingId).getLimitCpuUse());
|
||||
_vmDao.update(vmInstance.getId(), vmForUpdate);
|
||||
|
||||
return _vmDao.findById(vmInstance.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue