Skip to content

Commit

Permalink
Merge pull request #342 from gechiang/202205
Browse files Browse the repository at this point in the history
[supervisor][sfm]Fix the issue of swss.sh shows backtrace when shutdo…
  • Loading branch information
gechiang committed Apr 20, 2024
2 parents a820fe0 + eb0af1c commit 66f93d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions files/scripts/asic_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def main():
logger.log_info('Detected asic{} is online'.format(global_asic_id))
sys.exit(0)
elif asic_op == 'DEL':
logger.log_info('Detected asic{} is offline'.format(global_asic_id))
sys.exit(1)
if (global_asic_id == args_asic_id):
logger.log_info('Detected asic{} is offline'.format(global_asic_id))
sys.exit(1)
else:
continue

Expand Down

0 comments on commit 66f93d7

Please sign in to comment.