Rename Result.Resp to Result.Body.
diff --git a/openstack/identity/v3/tokens/requests.go b/openstack/identity/v3/tokens/requests.go
index db45cc5..3a21658 100644
--- a/openstack/identity/v3/tokens/requests.go
+++ b/openstack/identity/v3/tokens/requests.go
@@ -236,7 +236,7 @@
var response *perigee.Response
response, result.Err = perigee.Request("POST", tokenURL(c), perigee.Options{
ReqBody: &req,
- Results: &result.Resp,
+ Results: &result.Body,
OkCodes: []int{201},
})
if result.Err != nil {
@@ -252,7 +252,7 @@
var response *perigee.Response
response, result.Err = perigee.Request("GET", tokenURL(c), perigee.Options{
MoreHeaders: subjectTokenHeaders(c, token),
- Results: &result.Resp,
+ Results: &result.Body,
OkCodes: []int{200, 203},
})
if result.Err != nil {
diff --git a/openstack/identity/v3/tokens/results.go b/openstack/identity/v3/tokens/results.go
index 1e6538d..0b6a55b 100644
--- a/openstack/identity/v3/tokens/results.go
+++ b/openstack/identity/v3/tokens/results.go
@@ -29,7 +29,7 @@
// Parse the token itself from the stored headers.
token.ID = r.Headers.Get("X-Subject-Token")
- err := mapstructure.Decode(r.Resp, &response)
+ err := mapstructure.Decode(r.Body, &response)
if err != nil {
return nil, err
}