# HG changeset patch # User Matthew Wild # Date 1290895040 0 # Node ID 3bd0b625f96e3892a3875329305a6737bd990367 # Parent 588904a9fd8b0c771d335700ad48816a297a270f storagemanager: Return driver from load_driver() if successful diff -r 588904a9fd8b -r 3bd0b625f96e core/storagemanager.lua --- a/core/storagemanager.lua Sun Nov 28 02:42:02 2010 +0500 +++ b/core/storagemanager.lua Sat Nov 27 21:57:20 2010 +0000 @@ -44,6 +44,7 @@ if not driver then if driver_name ~= "internal" then modulemanager.load(host, "storage_"..driver_name); + return stores_available:get(host, driver_name); else return setmetatable({host = host}, default_driver_mt); end