refs #1603. Backup image changes
testing/ogcore-api/pipeline/head This commit looks good Details

pull/21/head
Manuel Aranda Rosales 2025-02-21 12:49:59 +01:00
parent 934a1f1853
commit c3ebc64264
1 changed files with 3 additions and 2 deletions

View File

@ -54,10 +54,11 @@ class BackupImageAction extends AbstractOgRepositoryController
$inputData = [ $inputData = [
'imageName' => $image->getName(), 'imageName' => $image->getName(),
'repositoryUuid' => $repository->getUuid(),
'imageUuid' => $imageImageRepository->getUuid(), 'imageUuid' => $imageImageRepository->getUuid(),
'ID_img' => $imageImageRepository->getImageFullsum(), 'ID_img' => $imageImageRepository->getImageFullsum(),
'repo_ip' => $imageImageRepository->getRepository()->getIp(), 'repo_ip' => $input->repoIp,
'remote_path' => '/var/lib/ogrepository/images', 'remote_path' => $input->remotePath
]; ];
$this->createService->__invoke($image->getClient(), CommandTypes::BACKUP_IMAGE, TraceStatus::IN_PROGRESS, $content['job_id'], $inputData); $this->createService->__invoke($image->getClient(), CommandTypes::BACKUP_IMAGE, TraceStatus::IN_PROGRESS, $content['job_id'], $inputData);