File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Tests/iaas/image-metadata Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -285,13 +285,13 @@ def validate_imageMD(img, outd_list):
285285 if not img .min_ram :
286286 print (f'ERROR: Image "{ imgnm } ": min_ram == 0' , file = sys .stderr )
287287 errors += 1
288- if img .min_disk * GIB < img .size :
289- print (f'WARNING: Image "{ imgnm } ": img size == { img .size / MIB :.0f} MiB, but min_disk == { img .min_disk * GIB / MIB :.0f} MiB' ,
290- file = sys .stderr )
291- warnings += 1
292288 if not img .min_disk :
293289 print (f'ERROR: Image "{ imgnm } ": min_disk == 0' , file = sys .stderr )
294290 errors += 1
291+ elif img .min_disk * GIB < img .size :
292+ print (f'ERROR: Image "{ imgnm } ": img size == { img .size / MIB :.0f} MiB, but min_disk == { img .min_disk * GIB / MIB :.0f} MiB' ,
293+ file = sys .stderr )
294+ errors += 1
295295 # (6) tags os:*, managed_by_*
296296 # Nothing to do here ... we could do a warning if those are missing ...
297297
You can’t perform that action at this time.
0 commit comments