mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 13:35:41 +00:00
Refuse to change service offering if encryption value would change (#203)
This commit is contained in:
parent
82879af238
commit
015ee74e2f
@ -1260,6 +1260,10 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
||||
int currentCpu = currentServiceOffering.getCpu();
|
||||
int currentMemory = currentServiceOffering.getRamSize();
|
||||
|
||||
if (currentServiceOffering.getEncrypt() != newServiceOffering.getEncrypt()) {
|
||||
throw new UnsupportedOperationException(("Cannot change volume encryption type via offering change"));
|
||||
}
|
||||
|
||||
Account owner = _accountMgr.getActiveAccountById(vmInstance.getAccountId());
|
||||
if (! VirtualMachineManager.ResourceCountRunningVMsonly.value()) {
|
||||
if (newCpu > currentCpu) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user