Dirk Mueller
0875a89e89
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=80
14 lines
455 B
Diff
14 lines
455 B
Diff
Index: cloudinit/util.py
|
|
===================================================================
|
|
--- cloudinit/util.py.orig
|
|
+++ cloudinit/util.py
|
|
@@ -155,7 +155,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)
|
|
|