Skip to content

Commit

Permalink
update comment for a potential bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhangalibaba committed Jan 17, 2020
1 parent 4376b7f commit 4602b14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ function preStartAction()
fi

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

0 comments on commit 4602b14

Please sign in to comment.