internal/awscloud: use AWS.ShareImage() from osbuild/images

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-08-06 13:46:59 +02:00 committed by Tomáš Hozza
parent a3937e99ce
commit 5d73c22bb5
2 changed files with 1 additions and 80 deletions

View file

@ -127,7 +127,7 @@ func (impl *AWSEC2ShareJobImpl) Run(job worker.Job) error {
return err
}
err = aws.ShareImage(args.Ami, args.ShareWithAccounts)
err = aws.ShareImage(args.Ami, nil, args.ShareWithAccounts)
if err != nil {
logWithId.Errorf("Error sharing image: %v", err)
result.JobError = clienterrors.New(clienterrors.ErrorSharingTarget, fmt.Sprintf("Error sharing image with target %v", args.ShareWithAccounts), nil)