mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
Don't base64-encode integers
This is a temporary fix until we either use Params to determine output type or treat integers differently from other binary values internally (as unicode instead of str, for example).
This commit is contained in:
parent
f52c671ca1
commit
7ccac40175
@ -145,7 +145,11 @@ class textui(backend.Backend):
|
||||
if it is a python str type, otherwise it is a plain string.
|
||||
"""
|
||||
if type(value) is str:
|
||||
return base64.b64encode(value)
|
||||
try:
|
||||
int(value)
|
||||
return value
|
||||
except ValueError:
|
||||
return base64.b64encode(value)
|
||||
else:
|
||||
return value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user