Commit 250bc29b by Szeberényi Imre

Update install.py

parent 854f912f
...@@ -79,7 +79,7 @@ def yaml_pretty_dump(data, file, **extra): ...@@ -79,7 +79,7 @@ def yaml_pretty_dump(data, file, **extra):
def dump_errors(result): def dump_errors(result):
# Filter errors only # Filter errors only
errors = {} errors = {}
for key, data in result.iteritems(): for key, data in result.items():
if not data['result']: if not data['result']:
errors[key] = data errors[key] = data
with open(join(PREFIX, 'errors.yml'), 'w') as f: with open(join(PREFIX, 'errors.yml'), 'w') as f:
...@@ -208,7 +208,7 @@ with Halo(text='Installing', spinner='dots'): ...@@ -208,7 +208,7 @@ with Halo(text='Installing', spinner='dots'):
# Count errors and print to console # Count errors and print to console
error_num = 0 error_num = 0
for key, data in result.iteritems(): for key, data in result.items():
if not data['result']: if not data['result']:
print('Error in state: %s' % key) print('Error in state: %s' % key)
error_num += 1 error_num += 1
......
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