Skip to content

Commit d1e2674

Browse files
author
Sanjay Prabhakar
committed
[patch] fix lint
1 parent 026bc1c commit d1e2674

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/mas/devops/backup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,12 @@ def uploadToS3(
279279
# Configure S3 client
280280
try:
281281
s3_config = {}
282-
282+
283283
if endpoint_url:
284284
s3_config['endpoint_url'] = endpoint_url
285-
286285
if aws_access_key_id and aws_secret_access_key:
287286
s3_config['aws_access_key_id'] = aws_access_key_id
288287
s3_config['aws_secret_access_key'] = aws_secret_access_key
289-
290288
if region_name:
291289
s3_config['region_name'] = region_name
292290
else:
@@ -296,12 +294,12 @@ def uploadToS3(
296294

297295
# Upload the file
298296
logger.info(f"Uploading {file_path} to s3://{bucket_name}/{object_name}")
299-
297+
300298
file_size = os.path.getsize(file_path)
301299
logger.info(f"File size: {file_size / (1024 * 1024):.2f} MB")
302300

303301
s3_client.upload_file(file_path, bucket_name, object_name)
304-
302+
305303
logger.info(f"Successfully uploaded {file_path} to s3://{bucket_name}/{object_name}")
306304
return True
307305

0 commit comments

Comments
 (0)