Skip to content

Commit 66f93d7

Browse files
authored
Merge pull request #342 from gechiang/202205
[supervisor][sfm]Fix the issue of swss.sh shows backtrace when shutdo…
2 parents a820fe0 + eb0af1c commit 66f93d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

files/scripts/asic_status.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ def main():
6969
logger.log_info('Detected asic{} is online'.format(global_asic_id))
7070
sys.exit(0)
7171
elif asic_op == 'DEL':
72-
logger.log_info('Detected asic{} is offline'.format(global_asic_id))
73-
sys.exit(1)
72+
if (global_asic_id == args_asic_id):
73+
logger.log_info('Detected asic{} is offline'.format(global_asic_id))
74+
sys.exit(1)
7475
else:
7576
continue
7677

0 commit comments

Comments
 (0)