refs #1516. Changed form and global import
testing/ogcore-api/pipeline/head This commit looks good Details

hotfix-timeout
Manuel Aranda Rosales 2025-02-13 16:39:56 +01:00
parent 947817daae
commit e9b982ffe4
1 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class TransferIsGlobalAction extends AbstractOgRepositoryController
$params = [
'json' => [
'image' => $image->getName().'.img',
'repo_ip' => $repository->getIp(),
'repo_ip' => $image->getClient()->getRepository()->getIp(),
'user' => 'opengnsys',
]
];
@ -64,12 +64,13 @@ class TransferIsGlobalAction extends AbstractOgRepositoryController
$inputData = [
'imageName' => $image->getName(),
'imageUuid' => $image->getUuid(),
//'imageImageRepositoryUuid' => $imageImageRepository?->getUuid(),
'repositoryUuid' => $repository->getUuid(),
];
$this->createService->__invoke($image->getClient(), CommandTypes::TRANSFER_IMAGE, TraceStatus::IN_PROGRESS, $content['job_id'], $inputData);
$imageImageRepository->setStatus(ImageStatus::TRANSFERRING);
//$imageImageRepository->setStatus(ImageStatus::TRANSFERRING);
$this->entityManager->persist($image);
$this->entityManager->flush();
}