Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weldr/ComposeRequest: OSTree options
nil
if not set
Previously, the `OSTree` property in the Weldr API `ComposeRequest` struct was not a pointer to the `ostree.ImageOptions` type. As a result, it was initialized to an empty struct, even if not set in the client API call. As a result, the `OSTree` property in the `distro.ImageOptions` was always not `nil`, when initializing the osbuild manifest. However, after a change in `osbuild/images` [0], providing OSTree options for non-OSTree image types is no longer considered valid. This caused a failure to submit a new compose for any non-OSTree image type. Change the `OSTree` property in Weldr `ComposeRequest` to be a pointer and mark it as optional. [0] osbuild/images#1071 Signed-off-by: Tomáš Hozza <[email protected]>
- Loading branch information