Fixed bugs in deployImage. Chaged status timeout
testing/ogcore-api/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/tag This commit looks good Details

pull/21/head opengnsys_devel-0.1.4
Manuel Aranda Rosales 2025-02-21 11:02:57 +01:00
parent 9089224522
commit ba8cdf81f7
2 changed files with 2 additions and 4 deletions

View File

@ -43,12 +43,10 @@ class DeployImageAction extends AbstractController
{
$image = $imageImageRepository->getImage();
if (!$image->getClient()->getIp()) {
if (!$client->getIp()) {
throw new ValidatorException('IP is required');
}
$partitionInfo = json_decode($image->getPartitionInfo(), true);
$method = match ($input->method) {
DeployMethodTypes::MULTICAST_UFTP_DIRECT, DeployMethodTypes::MULTICAST_UDPCAST_DIRECT, => 'multicast-direct',
DeployMethodTypes::MULTICAST, DeployMethodTypes::MULTICAST_UFTP, DeployMethodTypes::MULTICAST_UDPCAST => 'multicast',

View File

@ -74,7 +74,7 @@ class StatusAction extends AbstractController
$response = $this->httpClient->request('POST', 'https://' . $client->getIp() . ':8000/ogAdmClient/status', [
'verify_peer' => false,
'verify_host' => false,
'timeout' => 10,
'timeout' => 30,
'headers' => [
'Content-Type' => 'application/json',
],