[supervisor][sfm]Fix the issue of swss.sh shows backtrace when shutdown a SFM.

Signed-off-by: mlok <marty.lok@nokia.com>
This commit is contained in:
mlok 2024-03-19 12:17:57 -04:00
parent 8399450c9a
commit 0f983f288b

View File

@ -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