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');
|
||||
}
|
||||
|
||||
$repository = $image->getClient()->getRepository();
|
||||
|
||||
$params = [
|
||||
'json' => [
|
||||
'image' => $image->getName().'.img',
|
||||
'repo_ip' => $repository->getIp(),
|
||||
'repo_ip' => $image->getClient()->getRepository(),
|
||||
'user' => 'opengnsys',
|
||||
]
|
||||
];
|
||||
|
||||
$this->logger->info('Importing image', ['image' => $image->getName(), 'repository' => $repository->getIp()]);
|
||||
|
||||
$content = $this->createRequest('POST', 'http://'.$repository->getIp().':8006/ogrepository/v1/repo/images', $params);
|
||||
|
||||
if (!isset($content['job_id'])) {
|
||||
|
|
Loading…
Reference in New Issue