Ver Fonte

try disable memory downgrade on running VMs

andre há 4 anos atrás
pai
commit
fdead5c241
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 1 - 1
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -125,7 +125,7 @@ class GeneralSection extends BaseSection
             $this->addField($field);
         }
         //memory
-        if($vm->isStopped()) {
+        if(!$vm->isRunning()) {
             $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->setDescription('description');