Skip to content

Commit 3354d08

Browse files
authored
[config] Bypass standard input for reload (sonic-net#3597)
What I did Bypass stdin input for config reload to avoid double json read which will cause issue How I did it Add a bypass check How to verify it UT and manual test
1 parent 7cbcfda commit 3354d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ def reload(db, filename, yes, load_sysinfo, no_service_restart, force, file_form
18231823
click.echo("Input {} config file(s) separated by comma for multiple files ".format(num_cfg_file))
18241824
return
18251825

1826-
if filename is not None:
1826+
if filename is not None and filename != "/dev/stdin":
18271827
if multi_asic.is_multi_asic():
18281828
# Multiasic has not 100% fully validated. Thus pass here.
18291829
pass

0 commit comments

Comments
 (0)