Skip to content

Commit a619598

Browse files
fungi.adminopenstack-gerrit
authored andcommitted
Merge "Add safety check and detection support to FI tool" into stable/2023.1
2 parents 155a2fb + a1c94b4 commit a619598

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/test_format_inspector.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ def main():
102102
else:
103103
print('Confirmed size with qemu-img')
104104

105+
print('Image safety check: %s' % (
106+
fmt.safety_check() and 'passed' or 'FAILED'))
107+
if args.input:
108+
detected_fmt = format_inspector.detect_file_format(args.input)
109+
print('Detected inspector for image as: %s' % (
110+
detected_fmt.__class__.__name__))
111+
105112

106113
if __name__ == '__main__':
107114
sys.exit(main())

0 commit comments

Comments
 (0)