Fix lua lint error
This commit is contained in:
parent
f27b404421
commit
1d4c7ec65c
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ local function get_pem_cert_uid(raw_hostname)
|
|||
-- Convert hostname to ASCII lowercase (see RFC 6125 6.4.1) so that requests with uppercase
|
||||
-- host would lead to the right certificate being chosen (controller serves certificates for
|
||||
-- lowercase hostnames as specified in Ingress object's spec.rules.host)
|
||||
local hostname = re_sub(raw_hostname, "\\.$", "", "jo"):gsub("[A-Z]", function(c) return c:lower() end)
|
||||
local hostname = re_sub(raw_hostname, "\\.$", "", "jo"):gsub("[A-Z]",
|
||||
function(c) return c:lower() end)
|
||||
|
||||
local uid = certificate_servers:get(hostname)
|
||||
if uid then
|
||||
|
|
Loading…
Reference in a new issue