Use gophercloud.Result in objectstorage.
diff --git a/openstack/objectstorage/v1/accounts/requests.go b/openstack/objectstorage/v1/accounts/requests.go
index 55fcb05..2706197 100644
--- a/openstack/objectstorage/v1/accounts/requests.go
+++ b/openstack/objectstorage/v1/accounts/requests.go
@@ -46,7 +46,7 @@
MoreHeaders: h,
OkCodes: []int{204},
})
- res.Resp = &resp.HttpResponse
+ res.Headers = resp.HttpResponse.Header
res.Err = err
return res
}
@@ -80,8 +80,7 @@
}
// Update is a function that creates, updates, or deletes an account's metadata.
-// To extract the headers returned, call the ExtractHeaders method on the
-// UpdateResult.
+// To extract the headers returned, call the Extract method on the UpdateResult.
func Update(c *gophercloud.ServiceClient, opts UpdateOptsBuilder) UpdateResult {
var res UpdateResult
h := c.Provider.AuthenticatedHeaders()
@@ -101,7 +100,7 @@
MoreHeaders: h,
OkCodes: []int{204},
})
- res.Resp = &resp.HttpResponse
+ res.Headers = resp.HttpResponse.Header
res.Err = err
return res
}