Explorar el Código

try to disable vmcreate without ressources

andre hace 4 años
padre
commit
954a699586
Se han modificado 1 ficheros con 15 adiciones y 1 borrados
  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);