glance/glance
Abhishek Kekane 0da269128e Python 3.5: Image Import fails with Unicode Error
Newly added image import api fails for python 3.5 as it
raises Unicode error as it fails to open file in binary mode.

Added 'rb' mode while opening the file which will open the provided
file in binary mode.

Change-Id: I297a415d6fa8700c6a131e0931d11bda65265c73
Closes-Bug: #1759510
(cherry picked from commit ab4139e30c)
2018-04-03 04:40:43 +00:00
..
api Use config opt value to determine import methods 2018-03-19 16:48:49 +00:00
async Revise help text for uri filtering options 2018-02-21 17:22:12 +00:00
cmd Triggers shouldn't be execute in offline migration 2018-02-21 11:19:33 -05:00
common Python 3.5: Image Import fails with Unicode Error 2018-04-03 04:40:43 +00:00
db Triggers shouldn't be execute in offline migration 2018-02-21 11:19:33 -05:00
domain Prevent image become active without disk and container formats 2017-12-07 03:41:40 +00:00
hacking Make i18n log translation functions as no-op 2017-06-21 16:14:15 +07:00
image_cache Handle file delete races in image cache 2017-07-10 11:37:55 -05:00
locale Imported Translations from Zanata 2018-03-01 07:26:57 +00:00
quota Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
registry Deprecate Registry and it's config opts 2017-10-13 16:09:06 +01:00
tests Use config opt value to determine import methods 2018-03-19 16:48:49 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Use new oslo.context arg names 2017-11-27 10:20:10 -06:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Make i18n log translation functions as no-op 2017-06-21 16:14:15 +07:00
location.py Merge "Fixed indentation" 2016-10-20 14:36:35 +00:00
notifier.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
opts.py Fix config group not found error 2018-02-21 09:27:26 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Scrubber refactor 2018-01-11 10:04:16 +08:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00