Remove the `.Provider.` bit.
diff --git a/openstack/blockstorage/v1/volumes/requests.go b/openstack/blockstorage/v1/volumes/requests.go
index 2b3aaeb..fa2202c 100644
--- a/openstack/blockstorage/v1/volumes/requests.go
+++ b/openstack/blockstorage/v1/volumes/requests.go
@@ -86,7 +86,7 @@
}
_, res.Err = perigee.Request("POST", createURL(client), perigee.Options{
- MoreHeaders: client.Provider.AuthenticatedHeaders(),
+ MoreHeaders: client.AuthenticatedHeaders(),
ReqBody: &reqBody,
Results: &res.Body,
OkCodes: []int{200, 201},
@@ -97,7 +97,7 @@
// Delete will delete the existing Volume with the provided ID.
func Delete(client *gophercloud.ServiceClient, id string) error {
_, err := perigee.Request("DELETE", deleteURL(client, id), perigee.Options{
- MoreHeaders: client.Provider.AuthenticatedHeaders(),
+ MoreHeaders: client.AuthenticatedHeaders(),
OkCodes: []int{202, 204},
})
return err
@@ -109,7 +109,7 @@
var res GetResult
_, res.Err = perigee.Request("GET", getURL(client, id), perigee.Options{
Results: &res.Body,
- MoreHeaders: client.Provider.AuthenticatedHeaders(),
+ MoreHeaders: client.AuthenticatedHeaders(),
OkCodes: []int{200},
})
return res
@@ -207,7 +207,7 @@
}
_, res.Err = perigee.Request("PUT", updateURL(client, id), perigee.Options{
- MoreHeaders: client.Provider.AuthenticatedHeaders(),
+ MoreHeaders: client.AuthenticatedHeaders(),
OkCodes: []int{200},
ReqBody: &reqBody,
Results: &res.Body,