mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 08:59:57 -06:00
rpc: don't encode bytes
bytes.encode() appeared in rpc.py by a mistake, should have been bytes.decode() https://pagure.io/freeipa/issue/4985 Reviewed-By: Felipe Volpone <fbarreto@redhat.com>
This commit is contained in:
1 parent
947ac4bc1f
commit
e09b6c2602
1 file changed
+1
-1
+1
-1
@@ -195,7 +195,7 @@ def xml_wrap(value, version):
|
||||
|
||||
if isinstance(value, crypto_x509.Certificate):
|
||||
return base64.b64encode(
|
||||
value.public_bytes(x509_Encoding.DER)).encode('ascii')
|
||||
value.public_bytes(x509_Encoding.DER)).decode('ascii')
|
||||
|
||||
assert type(value) in (unicode, float, bool, type(None)) + six.integer_types
|
||||
return value
|
||||
|
||||
Reference in new issue
Block a user