Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions jupyter_drives/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,13 @@ async def _get_drive_location(self, drive_name):
Args:
drive_name: name of drive to get the region of
"""
location = 'eu-north-1'
location = 'us-east-1'
try:
# set temporary client for location extraction
async with self._s3_session.create_client('s3', aws_secret_access_key=self._config.secret_access_key, aws_access_key_id=self._config.access_key_id, aws_session_token=self._config.session_token) as client:
result = await client.get_bucket_location(Bucket=drive_name)
location = result['LocationConstraint']
if result['LocationConstraint'] is not None:
location = result['LocationConstraint']
except Exception as e:
raise tornado.web.HTTPError(
status_code= httpx.codes.BAD_REQUEST,
Expand Down
Loading