From bc9ffa431f053d914c1b0cabc1fd123368390428 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Mon, 4 Jan 2016 09:56:06 +0300 Subject: [PATCH] Fix. Definition of `uuid` function in destination.lua. --- .../ring_groups/resources/scripts/destination.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/install/scripts/app/ring_groups/resources/scripts/destination.lua b/resources/install/scripts/app/ring_groups/resources/scripts/destination.lua index c740dcb132..e1e03061a8 100644 --- a/resources/install/scripts/app/ring_groups/resources/scripts/destination.lua +++ b/resources/install/scripts/app/ring_groups/resources/scripts/destination.lua @@ -39,12 +39,12 @@ --define uuid function local random = math.random; - local function uuid(); - local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; - return string.gsub(template, '[xy]', function (c) - local v = (c == 'x') and random(0, 0xf) or random(8, 0xb); - return string.format('%x', v); - end) + local function uuid() + local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; + return string.gsub(template, '[xy]', function (c) + local v = (c == 'x') and random(0, 0xf) or random(8, 0xb); + return string.format('%x', v); + end) end --get session variables