Skip to content

Commit f2dbdd7

Browse files
committed
Fix the UnboundLocalError to address thermalctld stacktrace
(cherry picked from commit 3a6e0cc)
1 parent 54e453a commit f2dbdd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chassis/sonic_platform/psu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _get_psu_bulk_info(self):
5858

5959
channel, stub = nokia_common.channel_setup(nokia_common.NOKIA_GRPC_PSU_SERVICE)
6060
if not channel or not stub:
61-
return status
61+
return False
6262
ret, response = nokia_common.try_grpc(stub.GetPsuStatusInfo,
6363
platform_ndk_pb2.ReqPsuInfoPb(psu_idx=self.index))
6464
nokia_common.channel_shutdown(channel)

0 commit comments

Comments
 (0)