mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
We need quotes here, otheriwse yaml isn't happy later when loading the metadata file
This commit is contained in:
parent
d507d447dd
commit
1cec9d78eb
1 changed files with 2 additions and 1 deletions
|
@ -401,7 +401,8 @@ class OperationLogger(object):
|
|||
|
||||
dump = yaml.safe_dump(self.metadata, default_flow_style=False)
|
||||
for data in self.data_to_redact:
|
||||
dump = dump.replace(data, "**********")
|
||||
# N.B. : we need quotes here, otherwise yaml isn't happy about loading the yml later
|
||||
dump = dump.replace(data, "'**********'")
|
||||
with open(self.md_path, 'w') as outfile:
|
||||
outfile.write(dump)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue