Skip to content

Commit

Permalink
style(conf_loader): minor code style clean (#13199)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Jun 13, 2024
1 parent 211dab1 commit fbadd5a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions kong/conf_loader/parse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ local nginx_signals = require "kong.cmd.utils.nginx_signals"
local conf_constants = require "kong.conf_loader.constants"
local tools_system = require "kong.tools.system" -- for unit-testing
local tools_ip = require "kong.tools.ip"
local tools_string = require "kong.tools.string"


local normalize_ip = tools_ip.normalize_ip
local is_valid_ip_or_cidr = tools_ip.is_valid_ip_or_cidr
local try_decode_base64 = require("kong.tools.string").try_decode_base64
local strip = require("kong.tools.string").strip
local split = require("kong.tools.string").split
local try_decode_base64 = tools_string.try_decode_base64
local strip = tools_string.strip
local split = tools_string.split
local cycle_aware_deep_copy = require("kong.tools.table").cycle_aware_deep_copy
local is_valid_uuid = require("kong.tools.uuid").is_valid_uuid

Expand Down Expand Up @@ -230,7 +231,7 @@ local function check_and_parse(conf, opts)

elseif v_schema.enum and not tablex.find(v_schema.enum, value) then
errors[#errors + 1] = fmt("%s has an invalid value: '%s' (%s)", k,
tostring(value), concat(v_schema.enum, ", "))
tostring(value), concat(v_schema.enum, ", "))

end

Expand Down Expand Up @@ -442,7 +443,7 @@ local function check_and_parse(conf, opts)
"nginx_stream_lua_ssl_conf_command"}) do

if conf[key] then
local _, _, seclevel = string.find(conf[key], "@SECLEVEL=(%d+)")
local _, _, seclevel = find(conf[key], "@SECLEVEL=(%d+)")
if seclevel ~= "0" then
ngx.log(ngx.WARN, key, ": Default @SECLEVEL=0 overridden, TLSv1.1 unavailable")
end
Expand Down

1 comment on commit fbadd5a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:fbadd5aab0508c0a44e79236754d8f0732283a80
Artifacts available https://github.com/Kong/kong/actions/runs/9493339488

Please sign in to comment.