From 6610f272ec7f65bfebc2d2372421b628608008a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Wed, 13 Apr 2022 17:50:09 +0200 Subject: [PATCH] manman-sync: fix --- package/gluon-manman-sync/luasrc/usr/bin/manman-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-manman-sync/luasrc/usr/bin/manman-sync b/package/gluon-manman-sync/luasrc/usr/bin/manman-sync index 00389747..98a9fdc9 100755 --- a/package/gluon-manman-sync/luasrc/usr/bin/manman-sync +++ b/package/gluon-manman-sync/luasrc/usr/bin/manman-sync @@ -159,7 +159,7 @@ if uci:get_bool('gluon-manman-sync', 'sync', 'enabled') then if #location.nodes > 1 then for _, potential_node in ipairs(location.nodes) do - if (local_node ~= nil and potential_node.name == local_node) or (local_node_name ~= nil and potential_node.name == local_node_name) then + if (local_node ~= nil and tostring(potential_node.id) == local_node) or (local_node_name ~= nil and potential_node.name == local_node_name) then node = potential_node should_hostname = location.location.name .. '-' .. node.name end