|
@@ -74,7 +74,11 @@ class TemplateVmProvider extends BaseDataProvider implements ClientArea
|
|
|
//Save description
|
|
//Save description
|
|
|
$config = [
|
|
$config = [
|
|
|
"name" => "custom{$this->getWhmcsParamByKey('serviceid')}-".$vmModel->name,
|
|
"name" => "custom{$this->getWhmcsParamByKey('serviceid')}-".$vmModel->name,
|
|
|
- 'description'=> $this->getFormDataValues()['description']
|
|
|
|
|
|
|
+ 'description'=> $this->getFormDataValues()['description'],
|
|
|
|
|
+ 'sockets' => 1,
|
|
|
|
|
+ 'cores' => 1,
|
|
|
|
|
+ 'vcpus' => 1,
|
|
|
|
|
+ 'memory' => 512
|
|
|
];
|
|
];
|
|
|
$vm->updateConfig($config);
|
|
$vm->updateConfig($config);
|
|
|
//Convert to template
|
|
//Convert to template
|