Skip to content

Commit

Permalink
cmd/osbuild-package-sets: specify OSTree options only for OSTree images
Browse files Browse the repository at this point in the history
This was missed in PR#1071 [0].

[0] #1071

Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza authored and achilleas-k committed Dec 9, 2024
1 parent 048c8c6 commit 589427b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/osbuild-package-sets/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ func main() {

encoder := json.NewEncoder(os.Stdout)
encoder.SetIndent("", " ")
options := distro.ImageOptions{
OSTree: &ostree.ImageOptions{
var options distro.ImageOptions
if image.OSTreeRef() != "" {
options.OSTree = &ostree.ImageOptions{
URL: "https://example.com", // required by some image types
},
}
}
manifest, _, err := image.Manifest(&blueprint.Blueprint{}, options, nil, 0)
if err != nil {
Expand Down

0 comments on commit 589427b

Please sign in to comment.