fix
This commit is contained in:
@@ -5,8 +5,10 @@ function _M.uuid()
|
||||
|
||||
local handle = io.popen(uuid_cmd)
|
||||
local result = handle:read("*a")
|
||||
ngx.log(ngx.INFO, "uuid -> ", result)
|
||||
return result
|
||||
local r2 = string.gsub(result, "%s+", "")
|
||||
local r3 = string.gsub(r2,"\n","")
|
||||
ngx.log(ngx.INFO, "uuid -> ", r3)
|
||||
return r3
|
||||
end
|
||||
|
||||
return _M
|
||||
Reference in New Issue
Block a user