Merge pull request #1585 from bpandola/fix-1569
Fix rds.describe_db_snapshots bugs
This commit is contained in:
commit
23b51c39a1
2 changed files with 8 additions and 4 deletions
|
|
@ -726,10 +726,11 @@ class RDS2Backend(BaseBackend):
|
|||
|
||||
def describe_snapshots(self, db_instance_identifier, db_snapshot_identifier):
|
||||
if db_instance_identifier:
|
||||
db_instance_snapshots = []
|
||||
for snapshot in self.snapshots.values():
|
||||
if snapshot.database.db_instance_identifier == db_instance_identifier:
|
||||
return [snapshot]
|
||||
raise DBSnapshotNotFoundError()
|
||||
db_instance_snapshots.append(snapshot)
|
||||
return db_instance_snapshots
|
||||
|
||||
if db_snapshot_identifier:
|
||||
if db_snapshot_identifier in self.snapshots:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue