Skip to content

Commit

Permalink
add original shortname as cnm prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
torimcd committed Jun 4, 2024
1 parent 0871338 commit 0543496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bignbit/handle_gitc_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down
1 change: 1 addition & 0 deletions bignbit/send_to_gitc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0543496

Please sign in to comment.