Skip to content

Commit

Permalink
fix: use granuleId value from cma
Browse files Browse the repository at this point in the history
  • Loading branch information
ngachung committed Jun 28, 2022
1 parent 5706735 commit afbb5b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def to_stac(self, source: dict) -> dict:
"type": "Collection",
"stac_version": "1.0.0",
# "stac_extensions": [],
"id": f"{source['name']}__{source['version']}",
"id": f"{source['name']}___{source['version']}",
"description": "TODO",
"license": "proprietary",
# "keywords": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def start(self):
returning_dict['payload'] = {
"granules": [
{
"granuleId": pds_metadata.granule_id,
"granuleId": self.__event['cma']['event']['meta']['input_granules'][0]['granuleId'],
"dataType": pds_metadata.collection_name,
"version": f'{pds_metadata.collection_version}',
"files": self.__input_file_list + [{
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="cumulus_lambda_functions",
version="1.5.10",
version="1.5.11",
packages=find_packages(),
install_requires=install_requires,
tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage'],
Expand Down

0 comments on commit afbb5b0

Please sign in to comment.