Skip to content
Snippets Groups Projects
Commit 61f6dabd authored by jinder1s's avatar jinder1s
Browse files

correctly decoding bytes to utf-8

parent a96fcff9
No related branches found
Tags release-2019-11-04-10.15
No related merge requests found
......@@ -237,6 +237,8 @@ class CertificateManager(object):
Deserialize from a JSON representation into a Certificate object.
'value' should be either a Certificate instance, or a valid JSON string
"""
if not six.PY2 and not isinstance(value, six.integer_types):
value = value.decode('utf-8')
# Ensure the schema fieldset meets our expectations
for key in ("name", "description", "version"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment