Skip to content
Snippets Groups Projects
Commit 486aa8c2 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix Python3 compatibility for kolla-genpwd"

parents 45aff323 e3fccdfa
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ def genpwd(passwords_file, length, uuid_keys, ssh_keys, blank_keys,
uuidutils.generate_uuid().encode(), ''.encode(), md5)
.hexdigest())
elif k in fernet_keys:
passwords[k] = fernet.Fernet.generate_key()
passwords[k] = fernet.Fernet.generate_key().decode()
else:
passwords[k] = ''.join([
random.SystemRandom().choice(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment