Allow image uploads if file_size is None

This commit is contained in:
Joshua Boniface 2024-11-14 10:05:35 -05:00
parent 9441cb3b2e
commit cebc660fb0
1 changed files with 1 additions and 1 deletions

View File

@ -2492,7 +2492,7 @@ def ceph_volume_upload(zkhandler, pool, volume, img_type, file_size=None):
) )
if img_type == "raw": if img_type == "raw":
if file_size != dev_size: if file_size is not None and file_size != dev_size:
output = { output = {
"message": f"Image file size {file_size} does not match volume size {dev_size}" "message": f"Image file size {file_size} does not match volume size {dev_size}"
} }