Use CommonResult for images.
diff --git a/openstack/compute/v2/images/requests.go b/openstack/compute/v2/images/requests.go
index 8736382..1de3187 100644
--- a/openstack/compute/v2/images/requests.go
+++ b/openstack/compute/v2/images/requests.go
@@ -33,10 +33,6 @@
return images[len(images)-1].ID, nil
}
-// GetResult opaquely stores the result of a Get call.
-// Use ExtractImage() to translate it into this provider's version of an Image structure.
-type GetResult map[string]interface{}
-
// List enumerates the available images.
func List(client *gophercloud.ServiceClient) pagination.Pager {
createPage := func(r pagination.LastHTTPResponse) pagination.Page {
@@ -50,12 +46,12 @@
// Get acquires additional detail about a specific image by ID.
// Use ExtractImage() to intepret the result as an openstack Image.
-func Get(client *gophercloud.ServiceClient, id string) (GetResult, error) {
+func Get(client *gophercloud.ServiceClient, id string) GetResult {
var result GetResult
- _, err := perigee.Request("GET", getImageURL(client, id), perigee.Options{
+ _, result.Err = perigee.Request("GET", getImageURL(client, id), perigee.Options{
MoreHeaders: client.Provider.AuthenticatedHeaders(),
- Results: &result,
+ Results: &result.Resp,
OkCodes: []int{200},
})
- return result, err
+ return result
}