From: Tobias Ulmer Date: Tue, 20 Sep 2016 14:48:26 +0000 (+0200) Subject: cache: rename result_server to results X-Git-Tag: e2factory-2.3.15rc1~91 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=36dffc816a9c1699bad16c03750ce7829f0343c8;p=e2factory.git cache: rename result_server to results Signed-off-by: Tobias Ulmer --- diff --git a/generic/cache.lua b/generic/cache.lua index ebc9979..0fa5010 100644 --- a/generic/cache.lua +++ b/generic/cache.lua @@ -154,7 +154,7 @@ local _server_names = strict.lock({ proj_storage = "proj-storage", projects = "projects", upstream = "upstream", - result_server = "results", + results = "results", releases = "releases", }) diff --git a/local/policy.lua b/local/policy.lua index af92ddb..4e0eac1 100644 --- a/local/policy.lua +++ b/local/policy.lua @@ -67,7 +67,7 @@ end -- @return Server name (string). -- @return Location path to store results in (string). local function storage_release(location, release_id) - return cache.server_names().result_server, + return cache.server_names().results, string.format("%s/release/%s", location, release_id) end @@ -77,7 +77,7 @@ end -- @return Server name (string). -- @return Location path to store results in (string). local function storage_default(location, release_id) - return cache.server_names().result_server, + return cache.server_names().results, string.format("%s/shared", location) end