mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 10764: changing service offering drops cpu cap
status 10764: resolved fixed
This commit is contained in:
parent
96bacb85f8
commit
9e90999aab
@ -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;
|
||||
|
||||
@ -964,6 +964,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…
x
Reference in New Issue
Block a user