schema: return fingerprint as unicode text

https://fedorahosted.org/freeipa/ticket/4739

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
David Kupka
2016-06-21 16:12:41 +02:00
committed by Jan Cholasta
parent 75d2f9fe06
commit a5f48476ad

View File

@@ -727,7 +727,7 @@ class schema(Command):
else:
fingerprint.update(unicode(entry).encode('utf-8'))
return fingerprint.hexdigest()[:8]
return unicode(fingerprint.hexdigest()[:8])
def _generate_schema(self, **kwargs):
commands = list(self.api.Object.command.search(**kwargs))