Ensure daemon mode is updated on startup

Fixes the side effect of the previous bug during deploys of 0.9.22.
This commit is contained in:
Joshua Boniface 2021-07-05 23:39:23 -04:00
parent a8c28786dd
commit 5b6ef71909
1 changed files with 1 additions and 0 deletions

View File

@ -791,6 +791,7 @@ if zkhandler.exists(('node', myhostname)):
logger.out("Node is " + fmt_green + "present" + fmt_end + " in Zookeeper", state='i')
# Update static data just in case it's changed
zkhandler.write([
(('node', myhostname), config['daemon_mode']),
(('node.mode', myhostname), config['daemon_mode']),
(('node.state.daemon', myhostname), 'init'),
(('node.state.router', myhostname), init_routerstate),