manman-sync: clear ids
This commit is contained in:
parent
69117afb15
commit
0abf8a83ce
@ -374,11 +374,15 @@ local function enable_sync(location, node)
|
|||||||
if location then
|
if location then
|
||||||
printf('Config location %s', location)
|
printf('Config location %s', location)
|
||||||
uci:set('gluon-manman-sync', 'sync', 'location', location)
|
uci:set('gluon-manman-sync', 'sync', 'location', location)
|
||||||
|
-- clear ID, gets fetched from manman-sync
|
||||||
|
uci:set('gluon-manman-sync', 'sync', 'location_id', nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
if node then
|
if node then
|
||||||
printf('Config node %s', node)
|
printf('Config node %s', node)
|
||||||
uci:set('gluon-manman-sync', 'sync', 'node', node)
|
uci:set('gluon-manman-sync', 'sync', 'node', node)
|
||||||
|
-- clear ID, gets fetched from manman-sync
|
||||||
|
uci:set('gluon-manman-sync', 'sync', 'node_id', nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not uci:get_bool('gluon-manman-sync', 'sync', 'enabled') then
|
if not uci:get_bool('gluon-manman-sync', 'sync', 'enabled') then
|
||||||
|
Loading…
Reference in New Issue
Block a user