From 46fabe366fc8608b9ed726dd4503d1ef520a6d63 Mon Sep 17 00:00:00 2001 From: gibber9809 Date: Mon, 20 Jan 2025 15:45:12 +0000 Subject: [PATCH] Adjust check in file extraction script --- .../clp_package_utils/scripts/decompress.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/clp-package-utils/clp_package_utils/scripts/decompress.py b/components/clp-package-utils/clp_package_utils/scripts/decompress.py index a6c1053dc..4aff2aef0 100755 --- a/components/clp-package-utils/clp_package_utils/scripts/decompress.py +++ b/components/clp-package-utils/clp_package_utils/scripts/decompress.py @@ -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)