change CreateOpts from structure to map to avoid default null values
diff --git a/openstack/blockstorage/v1/volumes/requests.go b/openstack/blockstorage/v1/volumes/requests.go
index b1f45cd..34ae20e 100644
--- a/openstack/blockstorage/v1/volumes/requests.go
+++ b/openstack/blockstorage/v1/volumes/requests.go
@@ -11,7 +11,7 @@
if err != nil {
return v, err
}
- url := c.GetVolumeURL()
+ url := c.GetVolumesURL()
_, err = perigee.Request("POST", url, perigee.Options{
Results: &v,
ReqBody: map[string]interface{}{
diff --git a/openstack/blockstorage/v1/volumes/volumes.go b/openstack/blockstorage/v1/volumes/volumes.go
index 35c416b..e7eaeea 100644
--- a/openstack/blockstorage/v1/volumes/volumes.go
+++ b/openstack/blockstorage/v1/volumes/volumes.go
@@ -1,7 +1,9 @@
package volumes
type Volume map[string]interface{}
+type CreateOpts map[string]interface{}
+/*
type CreateOpts struct {
Availability_zone string `json:"size"`
Source_volid string `json:"source_volid"`
@@ -14,3 +16,4 @@
Bootable bool `json:"bootable"`
Metadata map[string]string `json:"metadata"`
}
+*/