Skip to content

Commit fe6d043

Browse files
authored
[config] Store ConfigDB init indicator boolean value as 1/0 in Redis to be language-agnostic (sonic-net#197)
1 parent ce9a36e commit fe6d043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def reload(filename):
159159
client.flushdb()
160160
command = "{} -j {} --write-to-db".format(SONIC_CFGGEN_PATH, filename)
161161
run_command(command, display_cmd=True)
162-
client.set(config_db.INIT_INDICATOR, True)
162+
client.set(config_db.INIT_INDICATOR, 1)
163163
_restart_services()
164164

165165
@cli.command()
@@ -200,7 +200,7 @@ def load_minigraph():
200200
else:
201201
command = "{} -m --write-to-db".format(SONIC_CFGGEN_PATH)
202202
run_command(command, display_cmd=True)
203-
client.set(config_db.INIT_INDICATOR, True)
203+
client.set(config_db.INIT_INDICATOR, 1)
204204
if os.path.isfile('/etc/sonic/acl.json'):
205205
run_command("acl-loader update full /etc/sonic/acl.json", display_cmd=True)
206206
#FIXME: After config DB daemon is implemented, we'll no longer need to restart every service.

0 commit comments

Comments
 (0)