Skip to content

Commit

Permalink
YDA-5441 Perform the right check.
Browse files Browse the repository at this point in the history
For a package in the vault, not in the deposit area.
  • Loading branch information
dworkin committed Sep 28, 2023
1 parent 83815ee commit 49e0364
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from deepdiff import DeepDiff

import avu_json
import folder
import provenance
import publication
import schema as schema_
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 49e0364

Please sign in to comment.