From 0543496be1d8a8455f16175859e2222938af20d2 Mon Sep 17 00:00:00 2001 From: Victoria McDonald Date: Tue, 4 Jun 2024 16:47:54 -0700 Subject: [PATCH] add original shortname as cnm prefix --- bignbit/handle_gitc_response.py | 2 +- bignbit/send_to_gitc.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bignbit/handle_gitc_response.py b/bignbit/handle_gitc_response.py index ce9a79c..f9b85c5 100644 --- a/bignbit/handle_gitc_response.py +++ b/bignbit/handle_gitc_response.py @@ -33,7 +33,7 @@ def handler(event, _): for message in event["Records"]: message_body = loads(message["body"]) gitc_id = message_body["identifier"] - collection_name = message_body["collection"] + collection_name = message_body["shortname"] cmr_env = os.environ['CMR_ENVIRONMENT'] granule_concept_id = gitc_id[-19:] diff --git a/bignbit/send_to_gitc.py b/bignbit/send_to_gitc.py index 4e3f42e..cc47749 100644 --- a/bignbit/send_to_gitc.py +++ b/bignbit/send_to_gitc.py @@ -129,6 +129,7 @@ def construct_cnm(image_set: ImageSet, cmr_provider: str, gitc_id: str, collecti "version": "1.5.1", "duplicationid": image_set.name, "collection": new_collection, + "shortname": collection_name, "submissionTime": submission_time, "identifier": gitc_id, "product": product,