Refactor PageResult creation.
diff --git a/rackspace/lb/v1/nodes/requests.go b/rackspace/lb/v1/nodes/requests.go
index b33d339..dc2d46c 100644
--- a/rackspace/lb/v1/nodes/requests.go
+++ b/rackspace/lb/v1/nodes/requests.go
@@ -119,14 +119,7 @@
return res
}
- pr := pagination.PageResult{
- Result: gophercloud.Result{
- Body: res.Body,
- Header: resp.Header,
- },
- URL: *resp.Request.URL,
- }
-
+ pr := pagination.PageResultFromParsed(resp, res.Body)
return CreateResult{pagination.SinglePageBase(pr)}
}