Merge "Import class and not object"

This commit is contained in:
Jenkins 2013-06-25 11:39:41 +00:00 committed by Gerrit Code Review
commit 048712430d
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)