diff options
author | Dan Prince <dprince@redhat.com> | 2013-03-14 13:29:47 -0400 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2013-03-21 15:21:04 -0400 |
commit | 620e6e37803ca94a9708413c35039e5097f6d9d4 (patch) | |
tree | 70185dbe9313999bead8b07fc94f0d65b757e98a /keystone/exception.py | |
parent | ba3f41f068f763ec96f7da19ed1fa1698f3c5fcf (diff) | |
download | keystone-620e6e37803ca94a9708413c35039e5097f6d9d4.tar.gz keystone-620e6e37803ca94a9708413c35039e5097f6d9d4.tar.xz keystone-620e6e37803ca94a9708413c35039e5097f6d9d4.zip |
Make versions aware of enabled pipelines.
Updates to make our versions controller a bit smarter so
that it only returns information on API versions which are
actually running.
With these changes a user can disable the v2.0 or v3 API
versions in their pipeline, restart keystone, and then have
versions return information only for the versions which
are actually running.
This is important because auth_token now uses info from the
keystone versions controller (in some cases) to dynamically
select an API version.
Fixes LP Bug #1158470.
Change-Id: I0fa8a82f08e7247c44fb7f4ff8dbb7d4ad58b9cc
Diffstat (limited to 'keystone/exception.py')
-rw-r--r-- | keystone/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keystone/exception.py b/keystone/exception.py index 59023bf7..bbf4c58f 100644 --- a/keystone/exception.py +++ b/keystone/exception.py @@ -204,6 +204,10 @@ class CredentialNotFound(NotFound): """Could not find credential: %(credential_id)s""" +class VersionNotFound(NotFound): + """Could not find version: %(version)s""" + + class Conflict(Error): """Conflict occurred attempting to store %(type)s. |