Skip to content

Commit

Permalink
Adjust check in file extraction script
Browse files Browse the repository at this point in the history
  • Loading branch information
gibber9809 committed Jan 20, 2025
1 parent c52653b commit 46fabe3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,12 @@ def handle_extract_file_cmd(

storage_type = clp_config.archive_output.storage.type
storage_engine = clp_config.package.storage_engine
if StorageType.S3 == storage_type and StorageEngine.CLP == storage_engine:
if StorageType.FS != storage_type or StorageEngine.CLP != storage_engine:
logger.error(
f"File extraction is not supported for archive storage type `{storage_type}` with"
f" storage engine `{storage_engine}`."
)
return -1
if StorageEngine.CLP_S == storage_engine:
logger.error(f"File extraction is not supported for storage engine `{storage_engine}`.")
return -1

container_name = generate_container_name(str(JobType.FILE_EXTRACTION))
container_clp_config, mounts = generate_container_config(clp_config, clp_home)
Expand Down

0 comments on commit 46fabe3

Please sign in to comment.