Commit 10382376 by Nótai István

install: fix error dumping

parent 417fbba8
...@@ -78,11 +78,12 @@ def yaml_pretty_dump(data, file, **extra): ...@@ -78,11 +78,12 @@ def yaml_pretty_dump(data, file, **extra):
def dump_errors(result): def dump_errors(result):
# Filter errors only # Filter errors only
errors = {}
for key, data in result.iteritems(): for key, data in result.iteritems():
if not data['result']: if not data['result']:
del result[key] errors[key] = data
with open(join(PREFIX, 'errors.yml'), 'w') as f: with open(join(PREFIX, 'errors.yml'), 'w') as f:
yaml_pretty_dump(result, f) yaml_pretty_dump(errors, f)
class KeyStore: class KeyStore:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment