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