andre 4 лет назад
Родитель
Сommit
498d64765b
1 измененных файлов с 2 добавлено и 11 удалено
  1. 2 11
      app/UI/VmCreate/Providers/VmCreateProvider.php

+ 2 - 11
app/UI/VmCreate/Providers/VmCreateProvider.php

@@ -278,17 +278,8 @@ class VmCreateProvider extends BaseModelDataProvider implements ClientArea
         }
         //cpuunits
         if( !$this->configuration()->isPermissionCpuunits() && !$this->formData['cpuPriority']){
-            $this->vmModel->cpuunits = $this->configuration()->serverCpuunit->min;
-//            $this->vmModel->cpuunits = $this->formData['vCPU'];
-
-logModuleCall(
-    'proxmoxCloud',
-    __FUNCTION__,
-    $this->formData,
-    'Debug',
-    $this->configuration()
-);
-
+//            $this->vmModel->cpuunits = $this->configuration()->serverCpuunit->min;
+            $this->vmModel->cpuunits = $this->formData['vcpu'];
         }
         //swap
         if( !$this->configuration()->isPermissionSwap() ){