Skip to content

Commit a83173d

Browse files
mnasiadkayoctozepto
authored andcommitted
Adapt fetch-fernet-tokens script to Python 3
Backport: train Closes-Bug: #1859047 Change-Id: I9032e43bffa3a3de6c33a4ab59f65bafb0129dd5 (cherry picked from commit 902f16c)
1 parent d53ead9 commit a83173d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker/keystone/keystone-fernet/fetch_fernet_tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def has_file(filename_path):
4343

4444

4545
def num_tokens():
46-
_, _, files = os.walk(TOKEN_PATH).next()
46+
_, _, files = next(os.walk(TOKEN_PATH))
4747
return len(files)
4848

4949

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fix bug which caused Keystone Fernet key distribution to fail on Python 3 systems,
5+
by adapting fetch-fernet-keys.py script to work on Python 3.
6+
`LP#1859047 <https://launchpad.net/bugs/1859047>`

0 commit comments

Comments
 (0)