Skip to content

Commit 4602b14

Browse files
committed
update comment for a potential bug
1 parent 4376b7f commit 4602b14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

files/build_templates/docker_image_ctl.j2

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ function preStartAction()
113113
fi
114114

115115
echo -n "" > /tmp/snmpagentaddr.yml
116+
# we should avoid using 'keys' operation via redis-cli
117+
# there would be an issue when KEY in database contains space or '\n'
118+
# for loop on the non-tty 'keys' output will take the space or `\n` as seperator when parsing the element
116119
keys=`sonic-db-cli CONFIG_DB keys "SNMP_AGENT_ADDRESS_CONFIG|*"`
117120
count=1
118121
for key in $keys;do

0 commit comments

Comments
 (0)