Commit 825fe2a6 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Open snapshot in binary mode before uploading

parent df499fea
......@@ -249,7 +249,7 @@ def image_creator():
if options.upload:
out.output("Uploading image to pithos:")
kamaki = Kamaki(options.account, options.token, out)
with open(snapshot) as f:
with open(snapshot, 'rb') as f:
uploaded_obj = kamaki.upload(f, size, options.upload,
"(1/4) Calculating block hashes",
"(2/4) Uploading missing blocks")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment