restore functionality for images

This commit is contained in:
Kiara Grouwstra 2022-08-20 19:29:46 +02:00
parent a788107028
commit d8ebf82641
2 changed files with 2 additions and 6 deletions

View File

@ -101,7 +101,7 @@ type Response struct {
// Links that were returned with the response. These are parsed from
// request body and not the header.
Links []*LinkAction
Links *Links
// Meta describes generic information about the response.
Meta *Meta

View File

@ -234,11 +234,7 @@ func (s *ImagesServiceOp) list(ctx context.Context, opt *ListOptions, listOpt *l
return nil, resp, err
}
if l := root.Links; l != nil {
var wrappedActions []*LinkAction
for _, element := range (*l).Actions {
wrappedActions = append(wrappedActions, &element)
}
resp.Links = wrappedActions
resp.Links = l;
}
if m := root.Meta; m != nil {
resp.Meta = m