Skip to content

Commit

Permalink
revert shortname and change collection ref to save cnm & cnm-r in sam…
Browse files Browse the repository at this point in the history
…e location
  • Loading branch information
torimcd committed Jun 5, 2024
1 parent 0543496 commit 267f59c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
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["shortname"]
collection_name = message_body["collection"]
cmr_env = os.environ['CMR_ENVIRONMENT']

granule_concept_id = gitc_id[-19:]
Expand Down
2 changes: 1 addition & 1 deletion bignbit/save_cnm_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def process(self):
pobit_audit_bucket = self.config['pobit_audit_bucket']
pobit_audit_path = self.config['pobit_audit_path']

collection_name = self.config['collection']
granule_ur = self.config['granule_ur']

cnm_content = self.config['cnm']
collection_name = cnm_content['collection']

cnm_key_name = pobit_audit_path + "/" + collection_name + "/" + granule_ur + "." + cnm_content['submissionTime'] + "." + "cnm.json"

Expand Down
1 change: 0 additions & 1 deletion bignbit/send_to_gitc.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ 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 267f59c

Please sign in to comment.