Skip to content

Commit

Permalink
Some minor refactoring in collect_cisco_8000
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Vlaemynck <[email protected]>
  • Loading branch information
gvlaemyn committed Sep 7, 2023
1 parent b729e6c commit b6569bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -1276,11 +1276,11 @@ collect_cisco_8000() {

# run 'hw-management-generate-dump.sh' script and save the result file
HW_DUMP_FILE=/usr/bin/hw-management-generate-dump.sh
if [ -f "$HW_DUMP_FILE" ]; then
${CMD_PREFIX} /usr/bin/hw-management-generate-dump.sh $ALLOW_PROCESS_STOP
if [[ -x $HW_DUMP_FILE ]]; then
${CMD_PREFIX} $HW_DUMP_FILE $ALLOW_PROCESS_STOP
ret=$?
if [ $ret -ne 0 ]; then
if [ $ret -eq $TIMEOUT_EXIT_CODE ]; then
if [[ $ret -ne 0 ]]; then
if [[ $ret -eq $TIMEOUT_EXIT_CODE ]]; then
echo "hw-management dump timedout after ${TIMEOUT_MIN} minutes."
else
echo "hw-management dump failed ..."
Expand Down

0 comments on commit b6569bf

Please sign in to comment.