From ef8607f6858610e7a27872c577cda2206010c04a Mon Sep 17 00:00:00 2001 From: saksarav Date: Thu, 18 Apr 2024 11:16:05 -0400 Subject: [PATCH] Fix for TSA-TSB service script Signed-off-by: saksarav --- files/scripts/startup_tsa_tsb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/scripts/startup_tsa_tsb.py b/files/scripts/startup_tsa_tsb.py index 563a509184bf..5d0495ead601 100644 --- a/files/scripts/startup_tsa_tsb.py +++ b/files/scripts/startup_tsa_tsb.py @@ -48,14 +48,14 @@ def get_tsa_config(asic_ns): def get_tsa_status(num_asics): if num_asics > 1: counter = 0 - for asic_id in range(int(asic_num)): + for asic_id in range(int(num_asics)): asic_ns = 'asic{}'.format(asic_id) sub_role = get_sub_role(asic_ns) if sub_role == 'FrontEnd': tsa_enabled = get_tsa_config(asic_ns) if tsa_enabled == 'false': counter += 1 - if counter == int(asic_num): + if counter == int(num_asics): return True; else: tsa_enabled = get_tsa_config("")