Sfoglia il codice sorgente

try to disable vmcreate without ressources

andre 4 anni fa
parent
commit
954a699586
1 ha cambiato i file con 15 aggiunte e 1 eliminazioni
  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);