diff --git a/firecrest/AsyncExternalStorage.py b/firecrest/AsyncExternalStorage.py index 4b45918..738c5a2 100644 --- a/firecrest/AsyncExternalStorage.py +++ b/firecrest/AsyncExternalStorage.py @@ -229,7 +229,7 @@ async def object_storage_link(self) -> str: :calls: GET `/tasks/{taskid}` """ if self._client._api_version > Version("1.13.0"): - return await self.object_storage_data["url"] + return (await self.object_storage_data)["url"] else: return await self.object_storage_data @@ -240,7 +240,7 @@ async def finish_download( :param target_path: the local path to save the file """ - url = await self.object_storage_data + url = await self.object_storage_link logger.info(f"Downloading the file from {url} and saving to {target_path}") # LOCAL FIX FOR MAC # url = url.replace("192.168.220.19", "localhost")