Fix: redshift:DescribeClusterSnapshots should not raise ClusterNotFoundError

Real AWS backend returns an empty array instead of raising an error.
This commit is contained in:
Brian Pandola 2020-11-21 23:13:04 -08:00 committed by Bert Blommers
commit 555be78f6e
2 changed files with 4 additions and 6 deletions

View file

@ -777,7 +777,6 @@ class RedshiftBackend(BaseBackend):
cluster_snapshots.append(snapshot)
if cluster_snapshots:
return cluster_snapshots
raise ClusterNotFoundError(cluster_identifier)
if snapshot_identifier:
if snapshot_identifier in self.snapshots: