chore: only validate s3 settings if enabled
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
a6c68f7dc0
commit
adadb26732
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue