Procházet zdrojové kódy

try to disable vmcreate without ressources

andre před 4 roky
rodič
revize
954a699586
1 změnil soubory, kde provedl 15 přidání a 1 odebrání
  1. 15 1
      app/UI/Vms/Pages/VmsDataTable.php

+ 15 - 1
app/UI/Vms/Pages/VmsDataTable.php

@@ -73,8 +73,22 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
                 'proxmoxCloud',
                 __FUNCTION__,
                 $resurceManager->vcpus()->free(),
+                'vcpus',
+                $resurceManager->vcpus()->getMin()
+            );
+            logModuleCall(
+                'proxmoxCloud',
+                __FUNCTION__,
                 $resurceManager->memory()->free(),
-                $resurceManager->disk()->free()
+                'memory',
+                $resurceManager->memory()->getMin()
+            );
+            logModuleCall(
+                'proxmoxCloud',
+                __FUNCTION__,
+                $resurceManager->disk()->free(),
+                'vcpus',
+                $resurceManager->disk()->getMin()
             );
             
             $this->addTitleButton($createButton);