Browse Source

try disable memory downgrade on running VMs

andre 4 years ago
parent
commit
2e9d896ab3
1 changed files with 9 additions and 0 deletions
  1. 9 0
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 9 - 0
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -125,6 +125,15 @@ class GeneralSection extends BaseSection
             $this->addField($field);
         }
         //memory
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $vm->isRunning(),
+            'Debug',
+            $vm
+        );
+
         $field = new Range('memory', $this->resourceManager->memory()->getMin(), $this->resourceManager->memory()->free());
         $field->addValidator(new NumberValidator($this->resourceManager->memory()->getMin(), $this->resourceManager->memory()->free(),true));
         $field->setDefaultValue($this->configuration()->serverMemory->min);