Testing new ogRepo import data
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
3bde0333d7
commit
31657113a8
|
@ -39,17 +39,16 @@ class TransferAction extends AbstractOgRepositoryController
|
||||||
throw new ValidatorException('Fullsum is required');
|
throw new ValidatorException('Fullsum is required');
|
||||||
}
|
}
|
||||||
|
|
||||||
$repository = $image->getClient()->getRepository();
|
|
||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
'json' => [
|
'json' => [
|
||||||
'image' => $image->getName().'.img',
|
'image' => $image->getName().'.img',
|
||||||
'repo_ip' => $repository->getIp(),
|
'repo_ip' => $image->getClient()->getRepository(),
|
||||||
'user' => 'opengnsys',
|
'user' => 'opengnsys',
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->logger->info('Importing image', ['image' => $image->getName(), 'repository' => $repository->getIp()]);
|
$this->logger->info('Importing image', ['image' => $image->getName(), 'repository' => $repository->getIp()]);
|
||||||
|
|
||||||
$content = $this->createRequest('POST', 'http://'.$repository->getIp().':8006/ogrepository/v1/repo/images', $params);
|
$content = $this->createRequest('POST', 'http://'.$repository->getIp().':8006/ogrepository/v1/repo/images', $params);
|
||||||
|
|
||||||
if (!isset($content['job_id'])) {
|
if (!isset($content['job_id'])) {
|
||||||
|
|
Loading…
Reference in New Issue