diff options
author | Chmouel Boudjnah <chmouel@chmouel.com> | 2012-08-02 16:41:47 +0200 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@chmouel.com> | 2012-08-06 09:10:00 +0200 |
commit | 86c713b17ac8984b54ff767d83ab41037e7a7833 (patch) | |
tree | 1a5d339fceeeb3ae22dabecc51ee8688dbce601a /novaclient/exceptions.py | |
parent | f15974b80dba9da1dee9433c8a44547fd5efd940 (diff) | |
download | python-novaclient-86c713b17ac8984b54ff767d83ab41037e7a7833.tar.gz |
Allow different auth providers via plugin system.
- Remove the NOVA_RAX_AUTH hack and provide (temporary) compatibility
with the new system.
- Example plugin for RAX and HP provided here :
RAX - https://github.com/emonty/rackspace-auth-openstack
HP - https://github.com/emonty/hpcloud-auth-openstack
- Plugin are allowed to specify their own auth_url directly.
- Thanks to mtaylor for helping on this.
Change-Id: Ie96835be617c6a20d9c3fc3bd1536083aecfdc0b
Diffstat (limited to 'novaclient/exceptions.py')
-rw-r--r-- | novaclient/exceptions.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/novaclient/exceptions.py b/novaclient/exceptions.py index 91bf30ef..da626921 100644 --- a/novaclient/exceptions.py +++ b/novaclient/exceptions.py @@ -22,6 +22,15 @@ class NoUniqueMatch(Exception): pass +class AuthSystemNotFound(Exception): + """When the user specify a AuthSystem but not installed.""" + def __init__(self, auth_system): + self.auth_system = auth_system + + def __str__(self): + return "AuthSystemNotFound: %s" % repr(self.auth_system) + + class NoTokenLookupException(Exception): """This form of authentication does not support looking up endpoints from an existing token.""" |