1 step 'Extraction'
diff --git a/openstack/blockstorage/v1/snapshots/requests.go b/openstack/blockstorage/v1/snapshots/requests.go
index 97d0521..cdf5d40 100644
--- a/openstack/blockstorage/v1/snapshots/requests.go
+++ b/openstack/blockstorage/v1/snapshots/requests.go
@@ -56,11 +56,12 @@
return &respBody.Snapshot, nil
}
-func Get(client *gophercloud.ServiceClient, id string) (GetResult, error) {
+func Get(client *gophercloud.ServiceClient, id string) GetResult {
var gr GetResult
_, err := perigee.Request("GET", snapshotURL(client, id), perigee.Options{
- Results: &gr,
+ Results: &gr.r,
MoreHeaders: client.Provider.AuthenticatedHeaders(),
})
- return gr, err
+ gr.err = err
+ return gr
}