Weldr: explicitly specify boot mode in AWS upload target
Explicitly specify the AMI boot mode in AWS upload target in Weldr API compose handler. The value is determined based on image type's boot mode. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
403b1e4692
commit
a9b2964ea6
2 changed files with 15 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/service/ec2"
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
"github.com/osbuild/osbuild-composer/internal/common"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
|
|
@ -998,6 +999,7 @@ func TestCompose(t *testing.T) {
|
|||
SecretAccessKey: "secretkey",
|
||||
Bucket: "clay",
|
||||
Key: "imagekey",
|
||||
BootMode: common.ToPtr(ec2.BootModeValuesUefiPreferred),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue