Merge "Adapt fetch-fernet-tokens script to Python 3"

This commit is contained in:
Zuul 2020-01-14 10:31:08 +00:00 committed by Gerrit Code Review
commit 440691eaa0
2 changed files with 7 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def has_file(filename_path):
def num_tokens():
_, _, files = os.walk(TOKEN_PATH).next()
_, _, files = next(os.walk(TOKEN_PATH))
return len(files)

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fix bug which caused Keystone Fernet key distribution to fail on Python 3 systems,
by adapting fetch-fernet-keys.py script to work on Python 3.
`LP#1859047 <https://launchpad.net/bugs/1859047>`