From cebc660fb041a36bdc26923bc16ba411a469b022 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 14 Nov 2024 10:05:35 -0500 Subject: [PATCH] Allow image uploads if file_size is None --- api-daemon/pvcapid/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-daemon/pvcapid/helper.py b/api-daemon/pvcapid/helper.py index 1288661b..d7542565 100755 --- a/api-daemon/pvcapid/helper.py +++ b/api-daemon/pvcapid/helper.py @@ -2492,7 +2492,7 @@ def ceph_volume_upload(zkhandler, pool, volume, img_type, file_size=None): ) if img_type == "raw": - if file_size != dev_size: + if file_size is not None and file_size != dev_size: output = { "message": f"Image file size {file_size} does not match volume size {dev_size}" }