Kaynağa Gözat

try to disable vmcreate without ressources

andre 4 yıl önce
ebeveyn
işleme
954a699586
1 değiştirilmiş dosya ile 15 ekleme ve 1 silme
  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);