From cae86a8eeb4f904fece3bf8dc95bee4388bf58a5 Mon Sep 17 00:00:00 2001 From: Juan Carlos Castillo Cano Date: Thu, 9 Jun 2016 11:33:28 +0100 Subject: [PATCH] Updating RDS instance status after deleting it --- moto/rds/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/rds/models.py b/moto/rds/models.py index 80a55434..9bbf2769 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -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)