updated rds status from shutdown to stopped to match aws (#1347)
This commit is contained in:
parent
04c5198a0c
commit
17b8396a9c
2 changed files with 6 additions and 6 deletions
|
|
@ -753,13 +753,13 @@ class RDS2Backend(BaseBackend):
|
|||
raise InvalidDBInstanceStateError(db_instance_identifier, 'stop')
|
||||
if db_snapshot_identifier:
|
||||
self.create_snapshot(db_instance_identifier, db_snapshot_identifier)
|
||||
database.status = 'shutdown'
|
||||
database.status = 'stopped'
|
||||
return database
|
||||
|
||||
def start_database(self, db_instance_identifier):
|
||||
database = self.describe_databases(db_instance_identifier)[0]
|
||||
# todo: bunch of different error messages to be generated from this api call
|
||||
if database.status != 'shutdown':
|
||||
if database.status != 'stopped':
|
||||
raise InvalidDBInstanceStateError(db_instance_identifier, 'start')
|
||||
database.status = 'available'
|
||||
return database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue