diff --git a/scripts/lib/my_uuid.lua b/scripts/lib/my_uuid.lua index a489495..4eaaa8b 100644 --- a/scripts/lib/my_uuid.lua +++ b/scripts/lib/my_uuid.lua @@ -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 \ No newline at end of file