Merge pull request #10880 from Thunderbottom/s3-backup-fix

fix: only validate s3 settings if enabled
This commit is contained in:
mergify[bot] 2020-06-30 12:43:43 +00:00 committed by GitHub
commit b1bdb3286e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,9 @@ from botocore.exceptions import ClientError
class S3BackupSettings(Document):
def validate(self):
if not self.enabled:
return
if not self.endpoint_url:
self.endpoint_url = 'https://s3.amazonaws.com'
conn = boto3.client(