Skip to content

Commit

Permalink
updated jsondump with jsondump method from filestorage (#859)
Browse files Browse the repository at this point in the history
* updated jsondump with jsondump method from filestorage

* removed unwanted params
  • Loading branch information
muhammad-ali-e authored Nov 25, 2024
1 parent f2a55f2 commit 78ae55e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_metadata_to_volume(self, input_file_path: str, source_hash: str) -> None
if check_feature_flag_status(FeatureFlag.REMOTE_FILE_STORAGE):
file_system = FileSystem(FileStorageType.WORKFLOW_EXECUTION)
file_storage = file_system.get_file_storage()
file_storage.write(path=metadata_path, mode="w", data=json.dumps(content))
file_storage.json_dump(path=metadata_path, data=content)
else:
with fsspec.open(f"file://{metadata_path}", "w") as local_file:
json.dump(content, local_file)
Expand Down

0 comments on commit 78ae55e

Please sign in to comment.