Fix displaying errors

This commit is contained in:
Benjamin Renard 2022-10-26 13:16:04 +02:00 committed by root
parent 7bfbcfe63c
commit 9f24acca6b

View file

@ -115,8 +115,10 @@ else:
if UPDATE_AVAILABLE:
msg.append(f'{UPDATE_AVAILABLE} update available')
print(f'WARNING - {", ".join(msg)}')
print("\n".join([f'- {error}' for error in errors]))
EXIT_STATUS = STATUS['WARNING']
print("\n".join([
print("\nDevices:\n" + "\n".join([
(
f'- {name} (version = {dev["deployed_version"]}, '
f'address = {dev["address"]})'