Fix remaining flake8 issues

Disabling W504 and W605 for now as there are too many instances.
This commit is contained in:
Chih-Hsuan Yen 2019-10-27 21:00:01 +08:00
commit 84fb52d0a2
No known key found for this signature in database
GPG key ID: 0453A6CA23C56315
10 changed files with 28 additions and 35 deletions

View file

@ -875,8 +875,8 @@ class RDS2Backend(BaseBackend):
database = self.describe_databases(db_instance_identifier)[0]
# todo: certain rds types not allowed to be stopped at this time.
if database.is_replica or database.multi_az:
# todo: more db types not supported by stop/start instance api
raise InvalidDBClusterStateFaultError(db_instance_identifier)
# todo: more db types not supported by stop/start instance api
raise InvalidDBClusterStateFaultError(db_instance_identifier)
if database.status != 'available':
raise InvalidDBInstanceStateError(db_instance_identifier, 'stop')
if db_snapshot_identifier: