From 1df84e19304994e8c8fb11bd489b628d7d48f374 Mon Sep 17 00:00:00 2001 From: Doyoung Kim <34902420+landscapepainter@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:37:25 -0700 Subject: [PATCH] Update sky/data/storage.py Co-authored-by: Tian Xia --- sky/data/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/data/storage.py b/sky/data/storage.py index bb89ad9605e..f909df45dd5 100644 --- a/sky/data/storage.py +++ b/sky/data/storage.py @@ -1372,7 +1372,7 @@ def _create_s3_bucket(self, # If default us-east-1 region of create_bucket API is used, # the LocationConstraint must not be specified. # Reference: https://stackoverflow.com/a/51912090 - if region and region != 'us-east-1': + if region is not None and region != 'us-east-1': create_bucket_config['CreateBucketConfiguration'] = { 'LocationConstraint': region }