internal/awscloud: use AWS.ShareImage() from osbuild/images
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
a3937e99ce
commit
5d73c22bb5
2 changed files with 1 additions and 80 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue