We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4376b7f commit 4602b14Copy full SHA for 4602b14
files/build_templates/docker_image_ctl.j2
@@ -113,6 +113,9 @@ function preStartAction()
113
fi
114
115
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
119
keys=`sonic-db-cli CONFIG_DB keys "SNMP_AGENT_ADDRESS_CONFIG|*"`
120
count=1
121
for key in $keys;do
0 commit comments