mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
remove useless code in utils.lua and add delay to swarm/configs tests
This commit is contained in:
parent
a0cc9a4408
commit
1ef7653bdc
2 changed files with 2 additions and 14 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"name": "swarm-configs",
|
||||
"kinds": ["swarm"],
|
||||
"timeout": 120,
|
||||
"timeout": 60,
|
||||
"delay": 120,
|
||||
"tests": [
|
||||
{
|
||||
"type": "string",
|
||||
|
|
|
|||
|
|
@ -57,19 +57,6 @@ utils.get_variable = function(variable, site_search, ctx)
|
|||
end
|
||||
if variables[server_name] then
|
||||
value = variables[server_name][variable]
|
||||
else
|
||||
for first_server, server_variables in pairs(variables) do
|
||||
if first_server ~= "global" then
|
||||
all_server_name = server_variables["SERVER_NAME"]
|
||||
if all_server_name then
|
||||
for single_server_name in all_server_name:gmatch("%S+") do
|
||||
if single_server_name == server_name then
|
||||
return server_variables[variable], "success"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return value, "success"
|
||||
|
|
|
|||
Loading…
Reference in a new issue