Skip to content

Commit

Permalink
[platform] Fixed return code processing in set_low_power_mode() for B…
Browse files Browse the repository at this point in the history
…FN platform (#3610)

Signed-off-by: Andriy Kokhan <[email protected]>
  • Loading branch information
akokhan authored and jleveque committed Oct 15, 2019
1 parent aea09ba commit 17c21ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def set_low_power_mode(self, port_num, lpmode):
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
Expand Down

0 comments on commit 17c21ac

Please sign in to comment.