SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-fix-unicode-handling-binarydecode.patch
Robert Schweikert daf356ec1b - Decoding error (boo#998843)
+ Added cloud-init-fix-unicode-handling-binarydecode.patch
- Fix dependencies, depends on oauthlib instead of oauth
- Fix dataSourceOpenNebula.patch, missing closing paren (boo#998836)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=46
2016-09-15 16:41:25 +00:00

12 lines
362 B
Diff

--- cloudinit/util.py.orig
+++ cloudinit/util.py
@@ -154,7 +154,7 @@ def target_path(target, path=None):
def decode_binary(blob, encoding='utf-8'):
# Converts a binary type into a text type using given encoding.
- if isinstance(blob, six.text_type):
+ if isinstance(blob, six.string_types):
return blob
return blob.decode(encoding)