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,