Skip to content

Commit

Permalink
update for non-cloud-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
landscapepainter committed Apr 15, 2023
1 parent 6299804 commit d19e3fd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sky/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,18 +282,6 @@ def from_yaml(yaml_path: str) -> 'Task':
for dst_path, src in file_mounts.items():
# Check if it is str path
if isinstance(src, str):
if data_utils.is_cloud_store_url(src):
store_type = data_utils.get_cloud_store_type(src)
cloud_type = storage_lib.STORE_TYPE_TO_CLOUD_TYPE[
store_type]
enabled_clouds = global_user_state.get_enabled_clouds_str(
)
if not cloud_type in enabled_clouds:
with ux_utils.print_exception_no_traceback():
raise exceptions.CloudDisabledError(
f'\'{store_type}\' type is specified: \'{src}\'. But '
f'\'{cloud_type}\' access is disabled. Enable '
f'\'{cloud_type}\' to fix.')
copy_mounts[dst_path] = src
# If the src is not a str path, it is likely a dict. Try to
# parse storage object.
Expand Down

0 comments on commit d19e3fd

Please sign in to comment.