Skip to content
Snippets Groups Projects
Commit 0ea98608 authored by Vladislav Belogrudov's avatar Vladislav Belogrudov
Browse files

Sometimes merging of passwords.yml gives json

Dumping of password dictionary can look quite different depending
on passwords structure. To always get yaml we need to use block
style for dump(), see
    http://pyyaml.org/wiki/PyYAMLDocumentation#Dictionarieswithoutnestedcollectionsarenotdumpedcorrectly

Change-Id: Ideee1aefedbba35480947956821341c6ef75088e
Closes-Bug: #1647308
parent 62c6d5a3
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ def main(): ...@@ -32,7 +32,7 @@ def main():
new_passwords.update(old_passwords) new_passwords.update(old_passwords)
with open(args.final, "w") as destination: with open(args.final, "w") as destination:
yaml.dump(new_passwords, destination) yaml.dump(new_passwords, destination, default_flow_style=False)
if __name__ == '__main__': if __name__ == '__main__':
......
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