Skip to content

Commit

Permalink
Address review comment by adding log message when failed to create we…
Browse files Browse the repository at this point in the history
…ntry in CHASSIS_STATE_DB

Signed-off-by: mlok <marty.lok@nokia.com>
  • Loading branch information
mlok-nokia committed May 2, 2024
1 parent c115038 commit dc557a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ function linecard_reboot_notify_supervisor()
module="${key#CHASSIS_MODULE_TABLE}"
if [ ! -z module ]; then
sonic-db-cli CHASSIS_STATE_DB hset "CHASSIS_MODULE_REBOOT_INFO_TABLE${module}" "reboot" "expected"
status=$?
if [ $status -ne 0 ]; then
debug "Failed to notify Supervisor: Linecard reboot is expected"
fi
fi
fi
fi
Expand Down

0 comments on commit dc557a9

Please sign in to comment.