diff --git a/internal/weldr/api.go b/internal/weldr/api.go index b4f766918..c31e1c899 100644 --- a/internal/weldr/api.go +++ b/internal/weldr/api.go @@ -2415,12 +2415,12 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request // https://weldr.io/lorax/pylorax.api.html#pylorax.api.v0.v0_compose_start type ComposeRequest struct { - BlueprintName string `json:"blueprint_name"` - ComposeType string `json:"compose_type"` - Size uint64 `json:"size"` - OSTree ostree.ImageOptions `json:"ostree"` - Branch string `json:"branch"` - Upload *uploadRequest `json:"upload"` + BlueprintName string `json:"blueprint_name"` + ComposeType string `json:"compose_type"` + Size uint64 `json:"size"` + OSTree *ostree.ImageOptions `json:"ostree,omitempty"` + Branch string `json:"branch"` + Upload *uploadRequest `json:"upload"` } type ComposeReply struct { BuildID uuid.UUID `json:"build_id"` @@ -2549,7 +2549,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request options := distro.ImageOptions{ Size: size, - OSTree: &cr.OSTree, + OSTree: cr.OSTree, PartitioningMode: pm, } options.Facts = &facts.ImageOptions{