Change in vdsm[master]: Fix
aaviram at redhat.com
aaviram at redhat.com
Sun Jan 24 14:36:48 UTC 2016
Amit Aviram has uploaded a new change for review.
Change subject: Fix
......................................................................
Fix
Change-Id: I6b0bf654b3711ac68c65fb9d2294f91efc92272d
Signed-off-by: Amit Aviram <aaviram at redhat.com>
---
M vdsm/storage/imagetickets.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/60/52660/1
diff --git a/vdsm/storage/imagetickets.py b/vdsm/storage/imagetickets.py
index f9afe6b..f3b7be6 100644
--- a/vdsm/storage/imagetickets.py
+++ b/vdsm/storage/imagetickets.py
@@ -83,9 +83,10 @@
if res.status >= 300:
try:
- content_length = int(res.getheader("content-length", "0"))
+ content_length = int(res.getheader("content-length",
+ default="0"))
except ValueError as e:
- error_info = {"explanation": "Missing content-length",
+ error_info = {"explanation": "Invalid content-length",
"detail": str(e)}
raise se.ImageDeamonError(res.status, res.reason, error_info)
--
To view, visit https://gerrit.ovirt.org/52660
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b0bf654b3711ac68c65fb9d2294f91efc92272d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Amit Aviram <aaviram at redhat.com>
More information about the vdsm-patches
mailing list