|
|
@@ -60,15 +60,7 @@ class ChangePackage extends AddonController
|
|
|
throw new \Exception('vCPUs wurden unterbucht');
|
|
|
}
|
|
|
if(($this->ressource->memory()->getUsed() / 1024) > $params['configoptions']['Memory Limit']){
|
|
|
- logModuleCall(
|
|
|
- 'proxmoxCloud',
|
|
|
- __FUNCTION__,
|
|
|
- $this->ressource->memory()->getUsed(),
|
|
|
- 'Debug',
|
|
|
- $params['configoptions']['Memory Limit']
|
|
|
- );
|
|
|
-
|
|
|
- //throw new \Exception('Memory wurde unterbucht');
|
|
|
+ throw new \Exception('Memory wurde unterbucht');
|
|
|
}
|
|
|
if($this->ressource->disk()->getUsed() > $params['configoptions']['Storage Limit']){
|
|
|
throw new \Exception('Storage wurde unterbucht');
|