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