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:
parent
02ff3171ee
commit
8f57a87e38
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue