Merge "Add safety check and detection support to FI tool" into stable/2024.1
This commit is contained in:
commit
2fc7e2e71e
@ -102,6 +102,13 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print('Confirmed size with qemu-img')
|
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__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
Loading…
Reference in New Issue
Block a user