1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|rds] Fix snapshots.get(id)

Change the snapshots collection to get the correct
snapshot.
This commit is contained in:
Aaron Suggs 2011-03-10 03:42:54 +08:00 committed by Wesley Beary
parent 02ff3171ee
commit 8f57a87e38

View file

@ -25,7 +25,7 @@ module Fog
end
def get(identity)
data = connection.describe_db_snapshots(identity).body['DescribeDBSnapshotsResult']['DBSnapshots'].first
data = connection.describe_db_snapshots(:snapshot_id => identity).body['DescribeDBSnapshotsResult']['DBSnapshots'].first
new(data) # data is an attribute hash
rescue Fog::AWS::RDS::NotFound
nil