diff --git a/bundles/octoprint/files/check_octoprint_update b/bundles/octoprint/files/check_octoprint_update index c65604e..60f9274 100644 --- a/bundles/octoprint/files/check_octoprint_update +++ b/bundles/octoprint/files/check_octoprint_update @@ -12,30 +12,18 @@ except Exception as e: exit(3) updates = set() -errors = set() for identifier, info in json['information'].items(): if info['updateAvailable']: - updates.add(info['displayName']) - -if not json['environment']['supported']: - errors.add('OctoPrint runs in an unsupported environment!') - -if not json['storage']['sufficient']: - errors.add('OctoPrint reports insufficient storage!') - - -for error in sorted(errors): - print(error) + updates.add('{} ({} → {})'.format( + info['displayName'] + info['information']['local']['value'], + info['information']['remote']['value'], + )) if len(updates) > 0: print('Updates available: {}'.format(', '.join(sorted(updates)))) - - -if len(errors) > 0: exit(2) -elif len(updates) > 0: - exit(1) else: print('OK') exit(0)