Comparison

core/storagemanager.lua @ 5776:bd0ff8ae98a8

Remove all trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Aug 2013 17:48:21 +0200
parent 5502:c773aa4467f1
child 6330:a678d15e590e
child 6552:bcb834728ee5
comparison
equal deleted inserted replaced
5775:a6c2b8933507 5776:bd0ff8ae98a8
35 local host_session = hosts[host]; 35 local host_session = hosts[host];
36 host_session.events.add_handler("item-added/storage-provider", function (event) 36 host_session.events.add_handler("item-added/storage-provider", function (event)
37 local item = event.item; 37 local item = event.item;
38 stores_available:set(host, item.name, item); 38 stores_available:set(host, item.name, item);
39 end); 39 end);
40 40
41 host_session.events.add_handler("item-removed/storage-provider", function (event) 41 host_session.events.add_handler("item-removed/storage-provider", function (event)
42 local item = event.item; 42 local item = event.item;
43 stores_available:set(host, item.name, nil); 43 stores_available:set(host, item.name, nil);
44 end); 44 end);
45 end 45 end
68 driver_name = storage[store]; 68 driver_name = storage[store];
69 end 69 end
70 if not driver_name then 70 if not driver_name then
71 driver_name = config.get(host, "default_storage") or "internal"; 71 driver_name = config.get(host, "default_storage") or "internal";
72 end 72 end
73 73
74 local driver = load_driver(host, driver_name); 74 local driver = load_driver(host, driver_name);
75 if not driver then 75 if not driver then
76 log("warn", "Falling back to null driver for %s storage on %s", store, host); 76 log("warn", "Falling back to null driver for %s storage on %s", store, host);
77 driver_name = "null"; 77 driver_name = "null";
78 driver = null_storage_driver; 78 driver = null_storage_driver;