Add safety check and detection support to FI tool
This adds a safety check and detection mechanism to the tools/test_format_inspector.py utility for verifying those features outside of glance. Change-Id: I447e7e51315472f8fa6013d4c4852f54c1e0c43d
This commit is contained in:
parent
244ccb68dd
commit
5f36dbb0c4
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user