Quellcode durchsuchen

try to check ressources on changepackage

andre vor 4 Jahren
Ursprung
Commit
1215589a8c
1 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. 9 1
      app/Http/Actions/ChangePackage.php

+ 9 - 1
app/Http/Actions/ChangePackage.php

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