From 17c21acacfae212cb24c2fd599d81318bd328aab Mon Sep 17 00:00:00 2001 From: Andriy Kokhan <43479230+akokhan@users.noreply.github.com> Date: Tue, 15 Oct 2019 21:32:02 +0300 Subject: [PATCH] [platform] Fixed return code processing in set_low_power_mode() for BFN platform (#3610) Signed-off-by: Andriy Kokhan --- .../barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py b/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py index 5e75376baa..1daee45357 100644 --- a/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py +++ b/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py @@ -135,7 +135,7 @@ class SfpUtil(SfpUtilBase): self.thrift_setup() status = pltfm_mgr.pltfm_mgr_qsfp_lpmode_set(port_num, lpmode) self.thrift_teardown() - return status + return (status == 0) def reset(self, port_num): # Check for invalid port_num