Fixing conditional

This commit is contained in:
jinder1s
2019-09-30 11:12:36 -04:00
parent 61f6dabdcf
commit c05d469a62

View File

@@ -237,7 +237,7 @@ 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):
if not six.PY2 and isinstance(value, bytes):
value = value.decode('utf-8')
# Ensure the schema fieldset meets our expectations