Skip to content

Commit 551a10c

Browse files
author
Jussi Kukkonen
authored
Merge pull request #1702 from MVrachev/dump-dirs
Sanitize repo simulator role names when writing
2 parents f75b58c + 3a00db0 commit 551a10c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/repository_simulator.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -397,5 +397,6 @@ def write(self) -> None:
397397
f.write(self.fetch_metadata(role))
398398

399399
for role in self.md_delegates:
400-
with open(os.path.join(dest_dir, f"{role}.json"), "wb") as f:
400+
quoted_role = parse.quote(role, "")
401+
with open(os.path.join(dest_dir, f"{quoted_role}.json"), "wb") as f:
401402
f.write(self.fetch_metadata(role))

0 commit comments

Comments
 (0)