Explorar o código

try to disable vmcreate without ressources

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
954a699586
Modificáronse 1 ficheiros con 15 adicións e 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);