Fixed some tests.

Some subnets were bogus so fixed that. Fixed issue where EC2-Classic was not respected.
RDS Deepcopy was breaking on subnet generator
This commit is contained in:
Terry Cain 2017-10-25 19:29:56 +01:00
commit 9ddf7fe436
No known key found for this signature in database
GPG key ID: 14D90844E4E9B9F3
4 changed files with 26 additions and 15 deletions

View file

@ -704,7 +704,8 @@ class RDS2Backend(BaseBackend):
if self.arn_regex.match(source_database_id):
db_kwargs['region'] = self.region
replica = copy.deepcopy(primary)
# Shoudln't really copy here as the instance is duplicated. RDS replicas have different instances.
replica = copy.copy(primary)
replica.update(db_kwargs)
replica.set_as_replica()
self.databases[database_id] = replica