[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:
parent
8399450c9a
commit
0f983f288b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user