Merge "Fix Python3 compatibility for kolla-genpwd"

This commit is contained in:
Zuul 2019-10-21 10:39:19 +00:00 committed by Gerrit Code Review
commit 486aa8c212

View File

@ -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(