refs #1089. Updates partition assistant
testing/ogcore-api/pipeline/head This commit looks good Details

pull/18/head
Manuel Aranda Rosales 2024-12-10 08:32:36 +01:00
parent 7b9650d804
commit 8949dcd865
2 changed files with 5 additions and 3 deletions

View File

@ -70,12 +70,11 @@ class PartitionAssistantAction extends AbstractController
'par' => (string) $partition->partitionNumber,
'cpt' => $partition->partitionCode,
'sfi' => $partition->filesystem,
'tam' => (string) ($partition->size * 1024),
'tam' => (string) (integer) ($partition->size * 1024),
'ope' => $partition->format ? "1" : "0",
];
}
// Hacer una llamada por cada disco
foreach ($disks as $diskNumber => $diskInfo) {
$data = [];
if (!empty($diskInfo['diskData'])) {

View File

@ -5,8 +5,11 @@ namespace App\Model;
final class DeployMethodTypes
{
public const string MULTICAST = 'multicast';
public const string MULTICAST_UFTP = 'multicast-uftp';
public const string MULTICAST_UDPCAST = 'multicast-udpcast';
public const string UNICAST = 'unicast';
public const string TORRENT = 'torrent';
public const string TORRENT = 'p2p';
private const array DEPLOYMENT_METHOD_TYPES = [
self::MULTICAST => 'Multicast',