From 1d4c7ec65cedfb804b3b5085bc2594fe49017846 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Tue, 9 Jun 2020 16:54:28 -0400 Subject: [PATCH] Fix lua lint error --- rootfs/etc/nginx/lua/certificate.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/nginx/lua/certificate.lua b/rootfs/etc/nginx/lua/certificate.lua index a575d77c5..cb9e1ed82 100644 --- a/rootfs/etc/nginx/lua/certificate.lua +++ b/rootfs/etc/nginx/lua/certificate.lua @@ -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