diff --git a/sky/data/storage.py b/sky/data/storage.py index 3b7aa61aa76..1c8c6930f1f 100644 --- a/sky/data/storage.py +++ b/sky/data/storage.py @@ -2294,8 +2294,8 @@ def _get_bucket(self) -> Tuple[str, bool]: storage_account_name=self.storage_account_name, container_name=self.name) if container.exists(): - is_private = True if container.get_container_properties( - )['public_access'] is None else False + is_private = (True if container.get_container_properties( + )['public_access'] is None else False) # when user attempts to use private container without # access rights if self.resource_group_name is None and is_private: