Add super call to db Base class

Without this call, multiple inheritance involving the db Base
class does not work correctly.

Change-Id: Iac6b99d34f00babb8b66fede4977bf75f0ed61d4
This commit is contained in:
Ben Nemec
2014-02-04 19:18:09 +00:00
parent 50d1ff4b7e
commit 30cdb2a8fc

View File

@@ -32,6 +32,7 @@ class Base(object):
"""DB driver is injected in the init method."""
def __init__(self, db_driver=None):
super(Base, self).__init__()
if not db_driver:
db_driver = CONF.db_driver
self.db = importutils.import_module(db_driver) # pylint: disable=C0103