Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
landscapepainter committed May 26, 2024
1 parent 054efae commit f856063
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion sky/data/mounting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def _get_mount_binary(mount_cmd: str) -> str:
return 'gcsfuse'
elif 'blobfuse2' in mount_cmd:
return 'blobfuse2'
else: # 'rclone' in mount_cmd
else:
assert 'rclone' in mount_cmd
return 'rclone'


Expand Down
8 changes: 4 additions & 4 deletions sky/data/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def _validate(self):
'the same as AZ bucket.')
assert data_utils.verify_az_bucket(
storage_account_name, self.name), (
f'Source specified as {self.source}, a AZ bucket. ',
f'Source specified as {self.source}, an AZ bucket. ',
'AZ Bucket should exist.')
elif self.source.startswith('r2://'):
assert self.name == data_utils.split_r2_path(self.source)[0], (
Expand Down Expand Up @@ -1498,7 +1498,7 @@ def _validate(self):
'the same as AZ bucket.')
assert data_utils.verify_az_bucket(
storage_account_name, self.name), (
f'Source specified as {self.source}, a AZ bucket. ',
f'Source specified as {self.source}, an AZ bucket. ',
'AZ Bucket should exist.')
elif self.source.startswith('r2://'):
assert self.name == data_utils.split_r2_path(self.source)[0], (
Expand Down Expand Up @@ -2480,7 +2480,7 @@ def _validate(self):
'the same as AZ bucket.')
assert data_utils.verify_az_bucket(
storage_account_name, self.name), (
f'Source specified as {self.source}, a AZ bucket. ',
f'Source specified as {self.source}, an AZ bucket. ',
'AZ Bucket should exist.')
elif self.source.startswith('r2://'):
assert self.name == data_utils.split_r2_path(self.source)[0], (
Expand Down Expand Up @@ -2866,7 +2866,7 @@ def _validate(self):
'the same as AZ bucket.')
assert data_utils.verify_az_bucket(
storage_account_name, self.name), (
f'Source specified as {self.source}, a AZ bucket. ',
f'Source specified as {self.source}, an AZ bucket. ',
'AZ Bucket should exist.')
elif self.source.startswith('r2://'):
assert self.name == data_utils.split_r2_path(self.source)[0], (
Expand Down

0 comments on commit f856063

Please sign in to comment.