Skip to content

Commit c99ba7d

Browse files
committed
Add warning for when we don't update filestore when hash and size same
1 parent ad0e559 commit c99ba7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/hdx/api/utilities/filestore_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def dataset_update_filestore_resource(
113113
"size"
114114
) and hash == original_resource_data.get("hash"):
115115
logger.warning(
116-
f"Updating metadata not filestore for resource {original_resource_data['name']} as size and hash are unchanged!"
116+
f"Not updating filestore for resource {original_resource_data['name']} as size and hash unchanged!"
117117
)
118118
if resource_data_to_update._url_backup:
119119
resource_data_to_update["url"] = resource_data_to_update._url_backup

src/hdx/data/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def _resource_merge_hdx_update(
413413
size, hash = get_size_and_hash(self._file_to_upload, file_format)
414414
if size == self.data.get("size") and hash == self.data.get("hash"):
415415
logger.warning(
416-
f"Updating metadata not filestore for resource {self.data['name']} as size and hash are unchanged!"
416+
f"Not updating filestore for resource {self.data['name']} as size and hash unchanged!"
417417
)
418418
if self._url_backup:
419419
self._old_data["url"] = self._url_backup

0 commit comments

Comments
 (0)