Base a pagination.PageResult on gophercloud.Result.
diff --git a/openstack/identity/v3/endpoints/requests.go b/openstack/identity/v3/endpoints/requests.go
index 345ec19..f05cae7 100644
--- a/openstack/identity/v3/endpoints/requests.go
+++ b/openstack/identity/v3/endpoints/requests.go
@@ -94,8 +94,8 @@
q["per_page"] = strconv.Itoa(opts.Page)
}
- createPage := func(r pagination.LastHTTPResponse) pagination.Page {
- return EndpointPage{pagination.LinkedPageBase{LastHTTPResponse: r}}
+ createPage := func(r pagination.PageResult) pagination.Page {
+ return EndpointPage{pagination.LinkedPageBase{PageResult: r}}
}
u := listURL(client) + utils.BuildQuery(q)