|
|
@@ -52,7 +52,6 @@ class VmUpdateProvider extends VmCreateProvider
|
|
|
$this->data = $this->vmModel->toArray();
|
|
|
$vm = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVm();
|
|
|
$config = $vm->config();
|
|
|
- $this->data['password'] = $this->vmModel->getPassword();
|
|
|
$this->data['description'] = html_entity_decode($config['description']);
|
|
|
$this->data['searchdomain'] = $config['searchdomain'];
|
|
|
$ns = explode(" ",$config['nameserver']);
|
|
|
@@ -143,8 +142,11 @@ class VmUpdateProvider extends VmCreateProvider
|
|
|
Api::beginTransaction();
|
|
|
DB::beginTransaction();
|
|
|
$this->fillVmModel();
|
|
|
- if($this->getFormDataValues()['password']){
|
|
|
- $this->vmModel->setPassword($this->getFormDataValues()['password']);
|
|
|
+ if($this->getFormDataValues()['ciuser']){
|
|
|
+ $vm->updateConfig(["ciuser" => $this->formData['ciuser']]);
|
|
|
+ }
|
|
|
+ if($this->getFormDataValues()['cipassword']){
|
|
|
+ $vm->updateConfig(["cipassword" => $this->formData['cipassword']]);
|
|
|
}
|
|
|
if($this->configuration()->isCalculateSocketsAndCores()){
|
|
|
$this->calculateSocketsAndCores();
|