]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes Cinder volume upload to image on windows
authorClaudiuNesa <cnesa@cloudbasesolutions.com>
Tue, 22 Jul 2014 15:16:15 +0000 (18:16 +0300)
committerClaudiuNesa <cnesa@cloudbasesolutions.com>
Wed, 23 Jul 2014 17:54:36 +0000 (20:54 +0300)
commit9c1214fdedd1a6ee336f25f7f84079d5918c9ff5
tree3e641f3e8c76e913bfd4a9276e3b302d9bcd0e2f
parent226a9511dc030ef6f4eb109bf1e4788af3a4209e
Fixes Cinder volume upload to image on windows

Due to fact that when uploading a volume to an image the file is
opened in text mode and the different line endings style on
windows glance client won't be able to upload the desired file.
The solutions is to simply open the file in binary mode when
performing this action.

Change-Id: I51b084ce38e1aaad4ded63b75b097137dedc088c
Closes-bug: 1346911
cinder/image/image_utils.py