From 49e036487f1414fe625105fbede8575c35a0e766 Mon Sep 17 00:00:00 2001 From: "Felix A. Croes" Date: Thu, 28 Sep 2023 14:44:38 +0200 Subject: [PATCH] YDA-5441 Perform the right check. For a package in the vault, not in the deposit area. --- meta.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta.py b/meta.py index 9f192c30b..91082a32e 100644 --- a/meta.py +++ b/meta.py @@ -14,7 +14,6 @@ from deepdiff import DeepDiff import avu_json -import folder import provenance import publication import schema as schema_ @@ -484,7 +483,7 @@ def ingest_metadata_vault(ctx, path): data_package = row[0] # Update flat index metadata for OpenSearch. - if config.enable_open_search and folder.collection_group_name(ctx, coll).startswith("deposit-"): + if config.enable_open_search and group.exists(ctx, coll.split("/")[3].replace("vault-", "deposit-", 1)): update_index_metadata(ctx, coll + "/index", metadata, creation_time, data_package) # Remove any remaining legacy XML-style AVUs.