Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tusd: Use default already set in computed_settings.

Alex Vandiver33339f89c3f2
diff --git a/zerver/management/commands/runtusd.py b/zerver/management/commands/runtusd.py
index 2c20e0622e3..ce030c66cc4 100644
--- a/zerver/management/commands/runtusd.py
+++ b/zerver/management/commands/runtusd.py
@@ -71,10 +71,6 @@ class Command(BaseCommand):
env_vars["AWS_ACCESS_KEY_ID"] = settings.S3_KEY
if settings.S3_SECRET_KEY is not None:
env_vars["AWS_SECRET_ACCESS_KEY"] = settings.S3_SECRET_KEY
- if settings.S3_REGION is None:
- import boto3
-
- env_vars["AWS_REGION"] = boto3.client("s3").meta.region_name
- else:
+ if settings.S3_REGION is not None:
env_vars["AWS_REGION"] = settings.S3_REGION
os.execvpe("tusd", tusd_args, env_vars)