Updating RDS instance status after deleting it

This commit is contained in:
Juan Carlos Castillo Cano 2016-06-09 11:33:28 +01:00
parent 4372c346d9
commit cae86a8eeb

View File

@ -373,6 +373,7 @@ class RDSBackend(BaseBackend):
if database.is_replica:
primary = self.describe_databases(database.source_db_identifier)[0]
primary.remove_replica(database)
database.status = 'deleting'
return database
else:
raise DBInstanceNotFoundError(db_instance_identifier)