bundles/octoprint: multi-line-output for check_octoprint_update
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-02 20:20:11 +01:00
parent d0c0425b65
commit 7e15f8adc3
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -22,7 +22,14 @@ for identifier, info in json['information'].items():
)) ))
if len(updates) > 0: if len(updates) > 0:
print('Updates available: {}'.format(', '.join(sorted(updates)))) print('{} update{} available'.format(
len(updates),
'' if len(updates) == 1 else 's',
))
for line in sorted(updates):
print(line)
exit(2) exit(2)
else: else:
print('OK') print('OK')