Ver Fonte

disable cpu downgrade on running VM

andre há 4 anos atrás
pai
commit
c887ceaa8f
1 ficheiros alterados com 2 adições e 11 exclusões
  1. 2 11
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 2 - 11
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

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