more error types; RequestOptsBuilder error fixes
diff --git a/openstack/db/v1/users/requests.go b/openstack/db/v1/users/requests.go
index acf0a13..8f86297 100644
--- a/openstack/db/v1/users/requests.go
+++ b/openstack/db/v1/users/requests.go
@@ -101,7 +101,7 @@
return res
}
- _, res.Err = client.Request("POST", baseURL(client, instanceID), gophercloud.RequestOpts{
+ _, res.Err = client.Request("POST", baseURL(client, instanceID), &gophercloud.RequestOpts{
JSONBody: &reqBody,
OkCodes: []int{202},
})
@@ -124,7 +124,7 @@
func Delete(client *gophercloud.ServiceClient, instanceID, userName string) DeleteResult {
var res DeleteResult
- _, res.Err = client.Request("DELETE", userURL(client, instanceID, userName), gophercloud.RequestOpts{
+ _, res.Err = client.Request("DELETE", userURL(client, instanceID, userName), &gophercloud.RequestOpts{
OkCodes: []int{202},
})