Hotfix. Updated error in partition wront CPT
testing/ogcore-api/pipeline/head This commit looks good Details

composer-install
Manuel Aranda Rosales 2024-12-16 11:38:10 +01:00
parent 7b9650d804
commit 20b2ea0429
1 changed files with 0 additions and 3 deletions

View File

@ -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);