From d964e5975d2ebd460eec605380624fb22783ca86 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 17 Oct 2024 12:48:16 -0500 Subject: [PATCH] Fixing string format to match granule definition requirements --- cumulus_api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulus_api/main.py b/cumulus_api/main.py index 2fd55ac..9c7cbcc 100644 --- a/cumulus_api/main.py +++ b/cumulus_api/main.py @@ -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=''):