We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81003cb commit a65e255Copy full SHA for a65e255
src/sagemaker/jumpstart/cache.py
@@ -261,8 +261,10 @@ def _get_json_file(
261
object and None when reading from the local file system.
262
"""
263
if self._is_local_metadata_mode():
264
- return self._get_json_file_from_local_override(key, filetype), None
265
- return self._get_json_file_and_etag_from_s3(key)
+ file_content, etag = self._get_json_file_from_local_override(key, filetype), None
+ else:
266
+ file_content, etag = self._get_json_file_and_etag_from_s3(key)
267
+ return file_content, etag
268
269
def _get_json_md5_hash(self, key: str):
270
"""Retrieves md5 object hash for s3 objects, using `s3.head_object`.
0 commit comments