Skip to content

Commit 96143ee

Browse files
authored
preserve old order for config reload (#1964)
What I did Fixes #9473 How I did it Preserve the old order of the config reload Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
1 parent f08c81d commit 96143ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

config/main.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1421,15 +1421,17 @@ def reload(db, filename, yes, load_sysinfo, no_service_restart, disable_arp_cach
14211421
# or by default DEFAULT_CONFIG_DB_FILE. In the case of database service running in namespace,
14221422
# the default config_db<namespaceID>.json format is used.
14231423

1424+
14241425
config_gen_opts = ""
1426+
1427+
if os.path.isfile(INIT_CFG_FILE):
1428+
config_gen_opts += " -j {} ".format(INIT_CFG_FILE)
1429+
14251430
if file_format == 'config_db':
14261431
config_gen_opts += ' -j {} '.format(file)
14271432
else:
14281433
config_gen_opts += ' -Y {} '.format(file)
14291434

1430-
if os.path.isfile(INIT_CFG_FILE):
1431-
config_gen_opts += " -j {} ".format(INIT_CFG_FILE)
1432-
14331435
if namespace is not None:
14341436
config_gen_opts += " -n {} ".format(namespace)
14351437

0 commit comments

Comments
 (0)