2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-05 13:32:12 +00:00

Fix python3 issue with base64 and str

This commit is contained in:
Jarrod Johnson 2019-10-08 11:20:27 -04:00
parent 0633b2ca67
commit 8e87f5b9e5

View File

@ -2247,7 +2247,7 @@ class ConfigManager(object):
target = dumpdata[confarea][element][attribute]['cryptvalue']
cryptval = []
for value in target:
cryptval.append(base64.b64encode(value))
cryptval.append(confluent.util.stringify(base64.b64encode(value)))
if attribute == 'cryptpass':
dumpdata[confarea][element][attribute] = '!'.join(cryptval)
else: