diff options
author | Colleen Murphy <colleen@gazlene.net> | 2020-05-10 22:36:21 -0700 |
---|---|---|
committer | Colleen Murphy <colleen@gazlene.net> | 2020-05-19 20:14:11 +0000 |
commit | 6b8e036baf8fd3f780a11a85ae749d73c7483f87 (patch) | |
tree | a11034b2a4cf927645bb31c139b8c261b256f1f1 | |
parent | 28bce595bb5d7d61c09c183c053f89c216fb8d62 (diff) | |
download | keystone-6b8e036baf8fd3f780a11a85ae749d73c7483f87.tar.gz |
Fix UserNotFound exception for expiring groups
Without this patch, if this exception is reached, it won't be properly
formed and will result in a log message like this:
Failed to insert replacement values into translated message Could not
find user: %(user_id)s. (Original: 'Could not find user:
%(user_id)s.'): 'user_id'
This patch adds the right parameters to ensure the exception properly
logs the user ID and the translation doesn't fail.
Change-Id: I3229d9a237633cda8f6a25f396a75b8310757d9d
(cherry picked from commit 2d26a87229e25eb723347926e098528695a13543)
-rw-r--r-- | keystone/identity/shadow_backends/sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/identity/shadow_backends/sql.py b/keystone/identity/shadow_backends/sql.py index 46dc34d5b..1d817c038 100644 --- a/keystone/identity/shadow_backends/sql.py +++ b/keystone/identity/shadow_backends/sql.py @@ -230,7 +230,7 @@ class ShadowUsers(base.ShadowUsersDriverBase): if not user: # Note(knikolla): This shouldn't really ever happen, since # this requires the user to already be logged in. - raise exception.UserNotFound() + raise exception.UserNotFound(user_id=user_id) return user with sql.session_for_write() as session: |