We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5739cd9 commit 1260f90Copy full SHA for 1260f90
scripts/fast-reboot
@@ -392,7 +392,7 @@ function save_counters_folder() {
392
393
function check_warm_restart_in_progress() {
394
sonic-db-cli STATE_DB keys "WARM_RESTART_ENABLE_TABLE|*" | while read key ; do
395
- if [[ x"$(sonic-db-cli STATE_DB hget $key enable)" == x"true" ]]; then
+ if [ -n "$key" ] && [[ x"$(sonic-db-cli STATE_DB hget $key enable)" == x"true" ]]; then
396
if [[ x"${FORCE}" == x"yes" ]]; then
397
debug "Ignoring warm restart flag for ${key#*|}"
398
else
0 commit comments