Merge "Add safety check and detection support to FI tool" into stable/2024.1

This commit is contained in:
fungi.admin 2024-07-05 15:52:26 +00:00 committed by Gerrit Code Review
commit 2fc7e2e71e

View File

@ -102,6 +102,13 @@ def main():
else:
print('Confirmed size with qemu-img')
print('Image safety check: %s' % (
fmt.safety_check() and 'passed' or 'FAILED'))
if args.input:
detected_fmt = format_inspector.detect_file_format(args.input)
print('Detected inspector for image as: %s' % (
detected_fmt.__class__.__name__))
if __name__ == '__main__':
sys.exit(main())