Skip to content

Commit

Permalink
Update sky/data/storage.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tian Xia <[email protected]>
  • Loading branch information
landscapepainter and cblmemo authored Jul 7, 2024
1 parent 8a750c1 commit 1df84e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/data/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1df84e1

Please sign in to comment.