Skip to content
Snippets Groups Projects
Unverified Commit eddc92fb authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Fix] Path mapping only once in storage backends (#490)

parent 15905bdc
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ class PetrelBackend(BaseStorageBackend):
filepath = str(filepath)
if self.path_mapping is not None:
for k, v in self.path_mapping.items():
filepath = filepath.replace(k, v)
filepath = filepath.replace(k, v, 1)
return filepath
def _format_path(self, filepath: str) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment