ostree: simplify ResolveParams arguments
No need to pass the entire image type. We just need the default ref. This removes the distro package dependency from the ostree package, which we will need so distro can use the ostree types and functions.
This commit is contained in:
parent
b92754b135
commit
102c322ec9
2 changed files with 3 additions and 5 deletions
|
|
@ -2247,7 +2247,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
|
|||
// Fake a parent commit for test requests
|
||||
cr.OSTree.Parent = "02604b2da6e954bd34b8b82a835e5a77d2b60ffa"
|
||||
} else {
|
||||
ostreeParams, err := ostree.ResolveParams(cr.OSTree, imageType)
|
||||
ostreeParams, err := ostree.ResolveParams(cr.OSTree, imageType.OSTreeRef())
|
||||
if err != nil {
|
||||
errors := responseError{
|
||||
ID: "OSTreeOptionsError",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue