From f8fdabbd3892e34cfbeb197f515cac99cc88a0c0 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Wed, 23 Sep 2015 15:57:57 -0500 Subject: [PATCH] Correct comment to not be driver-specific The comment mentioned Fernet tokens specifically, but the situation is going to apply any time the driver doesn't persist the token. The manager is common code and shouldn't depend on the driver. Change-Id: I21c104b6256d9718c233d0f44d4c06c5a1ace6c9 --- keystone/token/provider.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/keystone/token/provider.py b/keystone/token/provider.py index 1422e41ff8..df51e13c66 100644 --- a/keystone/token/provider.py +++ b/keystone/token/provider.py @@ -232,10 +232,8 @@ class Manager(manager.Manager): def validate_v3_token(self, token_id): unique_id = utils.generate_unique_id(token_id) # NOTE(lbragstad): Only go to persistent storage if we have a token to - # fetch from the backend. If the Fernet token provider is being used - # this step isn't necessary. The Fernet token reference is persisted in - # the token_id, so in this case set the token_ref as the identifier of - # the token. + # fetch from the backend (the driver persists the token). Otherwise + # the information about the token must be in the token id. if not self._needs_persistence: token_ref = token_id else: