Skip to content

Commit

Permalink
Merge pull request #30 from ghrcdaac/mlh0079-cloud-ext
Browse files Browse the repository at this point in the history
Fixing string format to match granule definition requirements
  • Loading branch information
sflynn-itsc authored Oct 17, 2024
2 parents 8f6b518 + d964e59 commit 4e5f723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def remove_granule_from_cmr(self, granule_id):
return self.__crud_records(record_type=record_type, data=data, verb=self.allowed_verbs.PATCH)

def replace_granule(self, data):
record_type = f'granules/{data.get("collection_id")}/{data.get("granule_id")}'
record_type = f'granules/{data.get("collectionId")}/{data.get("granuleId")}'
return self.__crud_records(record_type=record_type, verb=self.allowed_verbs.PUT, data=data)

def delete_granule(self, collection_id='', granule_id=''):
Expand Down

0 comments on commit 4e5f723

Please sign in to comment.