storagemanager: Remove usage of 'core' when calling configmanager.get()
authorMatthew Wild <mwild1@gmail.com>
Wed, 19 Sep 2012 11:08:33 +0000 (12:08 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 19 Sep 2012 11:08:33 +0000 (12:08 +0100)
core/storagemanager.lua

index 29cad2fff353b78a44af1da364a1377085b992fb..10d1a4bc6c1456cf6ee8bc67d2799da7e4feac64 100644 (file)
@@ -59,7 +59,7 @@ function load_driver(host, driver_name)
 end
 
 function get_driver(host, store)
-       local storage = config.get(host, "core", "storage");
+       local storage = config.get(host, "storage");
        local driver_name;
        local option_type = type(storage);
        if option_type == "string" then
@@ -68,7 +68,7 @@ function get_driver(host, store)
                driver_name = storage[store];
        end
        if not driver_name then
-               driver_name = config.get(host, "core", "default_storage") or "internal";
+               driver_name = config.get(host, "default_storage") or "internal";
        end
        
        local driver = load_driver(host, driver_name);
@@ -95,7 +95,7 @@ function open(host, store, typ)
 end
 
 function purge(user, host)
-       local storage = config.get(host, "core", "storage");
+       local storage = config.get(host, "storage");
        local driver_name;
        if type(storage) == "table" then
                -- multiple storage backends in use that we need to purge