Skip to content

Commit 0513bb7

Browse files
committed
hw-mgmt: script: Fix crash in the sync script
Fix sync service crash - misprint in hw_mgmt_sync. Bug: 4247318 Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com>
1 parent c65724a commit 0513bb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

usr/usr/bin/hw_management_sync.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,12 @@ def asic_temp_populate(arg_list, arg):
459459
@summary: Update asic attributes
460460
"""
461461
f_asic_ready = "/var/run/hw-management/config/{}_ready".format(arg_list[0])
462+
asic_ready = 1
462463
try:
463-
with open(f_asic_reay, 'r') as f:
464+
with open(f_asic_ready, 'r') as f:
464465
asic_ready = int(f.read().strip())
465466
except (FileNotFoundError, ValueError):
466-
asic_ready = 1
467+
pass
467468

468469
if asic_ready:
469470
try:

0 commit comments

Comments
 (0)