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:
@@ -32,6 +32,7 @@ class Base(object):
|
|||||||
"""DB driver is injected in the init method."""
|
"""DB driver is injected in the init method."""
|
||||||
|
|
||||||
def __init__(self, db_driver=None):
|
def __init__(self, db_driver=None):
|
||||||
|
super(Base, self).__init__()
|
||||||
if not db_driver:
|
if not db_driver:
|
||||||
db_driver = CONF.db_driver
|
db_driver = CONF.db_driver
|
||||||
self.db = importutils.import_module(db_driver) # pylint: disable=C0103
|
self.db = importutils.import_module(db_driver) # pylint: disable=C0103
|
||||||
|
|||||||
Reference in New Issue
Block a user