Merge branch 'main' into develop
commit
4a26d7a880
|
@ -59,14 +59,11 @@ class CreatePartitionService
|
|||
|
||||
if ($partitionType) {
|
||||
$partitionEntity->setPartitionCode($partitionType['name']);
|
||||
} else {
|
||||
throw new Exception("El tipo de partición con código {$decimalValue} no se encontró.");
|
||||
}
|
||||
} else {
|
||||
$partitionEntity->setPartitionCode(PartitionTypes::getPartitionType(0)['name']);
|
||||
}
|
||||
|
||||
|
||||
$partitionEntity->setFilesystem($cfg['fsi']);
|
||||
$partitionEntity->setMemoryUsage(((int) $cfg['uso']) * 100);
|
||||
$this->entityManager->persist($partitionEntity);
|
||||
|
|
Loading…
Reference in New Issue