diff options
| author | Yuriy Taraday <yorik.sar@gmail.com> | 2011-06-03 12:37:58 +0400 |
|---|---|---|
| committer | Yuriy Taraday <yorik.sar@gmail.com> | 2011-06-03 12:37:58 +0400 |
| commit | 9ee103a91fe3bed03c3f4c6c1a6e89fa474e1aae (patch) | |
| tree | 8a66ace34d45c13faa4edaab9e9219ba739ffa57 | |
| parent | 02138e5e2e3eabe1c59bd03dd9488e5d1fdb38bc (diff) | |
| download | nova-9ee103a91fe3bed03c3f4c6c1a6e89fa474e1aae.tar.gz nova-9ee103a91fe3bed03c3f4c6c1a6e89fa474e1aae.tar.xz nova-9ee103a91fe3bed03c3f4c6c1a6e89fa474e1aae.zip | |
Fixed FakeLdapDriver, made it call LdapDriver.__init__
| -rw-r--r-- | nova/auth/ldapdriver.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/auth/ldapdriver.py b/nova/auth/ldapdriver.py index 95e31ae3b..183f7a985 100644 --- a/nova/auth/ldapdriver.py +++ b/nova/auth/ldapdriver.py @@ -676,6 +676,7 @@ class LdapDriver(object): class FakeLdapDriver(LdapDriver): """Fake Ldap Auth driver""" - def __init__(self): # pylint: disable=W0231 - __import__('nova.auth.fakeldap') - self.ldap = sys.modules['nova.auth.fakeldap'] + def __init__(self): + import nova.auth.fakeldap + sys.modules['ldap'] = nova.auth.fakeldap + super(FakeLdapDriver, self).__init__() |
