Преглед изворни кода

disable cpu downgrade on running VM

andre пре 4 година
родитељ
комит
921aa2d0d1
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 9 - 0
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -98,6 +98,15 @@ class GeneralSection extends BaseSection
                 $field->addValidator(new NumberValidator($this->resourceManager->vcpus()->getMin(), $this->resourceManager->vcpus()->free(),true));
                 $field->addValidator(new NumberValidator($this->resourceManager->vcpus()->getMin(), $this->resourceManager->vcpus()->free(),true));
                 $field->setDescription('description');
                 $field->setDescription('description');
             } else {
             } else {
+
+                logModuleCall(
+                    'proxmoxCloud',
+                    __FUNCTION__,
+                    $vm->config(['vcpus']),
+                    'Debug',
+                    $this->resourceManager->vcpus()->getMin()
+                );
+
                 $field = new Range('vcpus',$vm->config(['vcpus']), $this->resourceManager->vcpus()->free());
                 $field = new Range('vcpus',$vm->config(['vcpus']), $this->resourceManager->vcpus()->free());
                 $field->addValidator(new NumberValidator($vm->config(['vcpus']), $this->resourceManager->vcpus()->free(),true));
                 $field->addValidator(new NumberValidator($vm->config(['vcpus']), $this->resourceManager->vcpus()->free(),true));
                 $field->setDescription('Zur Reduzierung der CPUs muß die VM heruntergefahren sein!');
                 $field->setDescription('Zur Reduzierung der CPUs muß die VM heruntergefahren sein!');