def get_storage(): """ Return the engine class from the provided engine name """ storage_driver = cfg.CONF['service:central'].storage_driver cls = Storage.get_driver(storage_driver) return cls()
def get_storage(storage_driver): """Return the engine class from the provided engine name""" cls = Storage.get_driver(storage_driver) return cls()