Hotfix. Updated error in partition wront CPT
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
7b9650d804
commit
20b2ea0429
|
@ -59,14 +59,11 @@ class CreatePartitionService
|
||||||
|
|
||||||
if ($partitionType) {
|
if ($partitionType) {
|
||||||
$partitionEntity->setPartitionCode($partitionType['name']);
|
$partitionEntity->setPartitionCode($partitionType['name']);
|
||||||
} else {
|
|
||||||
throw new Exception("El tipo de partición con código {$decimalValue} no se encontró.");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$partitionEntity->setPartitionCode(PartitionTypes::getPartitionType(0)['name']);
|
$partitionEntity->setPartitionCode(PartitionTypes::getPartitionType(0)['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$partitionEntity->setFilesystem($cfg['fsi']);
|
$partitionEntity->setFilesystem($cfg['fsi']);
|
||||||
$partitionEntity->setMemoryUsage(((int) $cfg['uso']) * 100);
|
$partitionEntity->setMemoryUsage(((int) $cfg['uso']) * 100);
|
||||||
$this->entityManager->persist($partitionEntity);
|
$this->entityManager->persist($partitionEntity);
|
||||||
|
|
Loading…
Reference in New Issue