refs #1516. Changed form and global import
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
947817daae
commit
e9b982ffe4
|
@ -48,7 +48,7 @@ class TransferIsGlobalAction extends AbstractOgRepositoryController
|
||||||
$params = [
|
$params = [
|
||||||
'json' => [
|
'json' => [
|
||||||
'image' => $image->getName().'.img',
|
'image' => $image->getName().'.img',
|
||||||
'repo_ip' => $repository->getIp(),
|
'repo_ip' => $image->getClient()->getRepository()->getIp(),
|
||||||
'user' => 'opengnsys',
|
'user' => 'opengnsys',
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
@ -64,12 +64,13 @@ class TransferIsGlobalAction extends AbstractOgRepositoryController
|
||||||
$inputData = [
|
$inputData = [
|
||||||
'imageName' => $image->getName(),
|
'imageName' => $image->getName(),
|
||||||
'imageUuid' => $image->getUuid(),
|
'imageUuid' => $image->getUuid(),
|
||||||
|
//'imageImageRepositoryUuid' => $imageImageRepository?->getUuid(),
|
||||||
'repositoryUuid' => $repository->getUuid(),
|
'repositoryUuid' => $repository->getUuid(),
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->createService->__invoke($image->getClient(), CommandTypes::TRANSFER_IMAGE, TraceStatus::IN_PROGRESS, $content['job_id'], $inputData);
|
$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->persist($image);
|
||||||
$this->entityManager->flush();
|
$this->entityManager->flush();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue