|
@@ -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!');
|