Import class and not object

Change-Id: Ib30a7c086e8b86eb22a0ba17e9b569aa137c40ed
This commit is contained in:
Endre Karlson 2013-06-25 13:29:59 +02:00
parent f85deab6c5
commit 64c3c789a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)