more error types; RequestOptsBuilder error fixes
diff --git a/openstack/db/v1/databases/requests.go b/openstack/db/v1/databases/requests.go
index 26bca04..ff57245 100644
--- a/openstack/db/v1/databases/requests.go
+++ b/openstack/db/v1/databases/requests.go
@@ -83,7 +83,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},
})
@@ -107,7 +107,7 @@
func Delete(client *gophercloud.ServiceClient, instanceID, dbName string) DeleteResult {
var res DeleteResult
- _, res.Err = client.Request("DELETE", dbURL(client, instanceID, dbName), gophercloud.RequestOpts{
+ _, res.Err = client.Request("DELETE", dbURL(client, instanceID, dbName), &gophercloud.RequestOpts{
OkCodes: []int{202},
})