Import class and not object
Change-Id: Ib30a7c086e8b86eb22a0ba17e9b569aa137c40ed
This commit is contained in:
parent
f85deab6c5
commit
64c3c789a4
|
@ -24,7 +24,7 @@ def get_engine(service_name, driver_name):
|
|||
Return the engine class from the provided engine name
|
||||
"""
|
||||
path = 'billingstack.%s.storage.StorageEngine' % service_name
|
||||
base = importutils.import_object(path)
|
||||
base = importutils.import_class(path)
|
||||
return base.get_plugin(driver_name, invoke_on_load=True)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue